aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO11
-rw-r--r--src/database/types.rs2
2 files changed, 12 insertions, 1 deletions
diff --git a/TODO b/TODO
index a663a34..dbe5966 100644
--- a/TODO
+++ b/TODO
@@ -6,4 +6,13 @@ Rework Response to be an enum
Add Channels
Add DM'ing
-Federation would be cool \ No newline at end of file
+Federation would be cool
+Rework message format - sender should just be an id
+
+Limit get_message_id_list
+Add get_message_list
+
+ACLs
+Config
+
+/api - list functions/routes \ No newline at end of file
diff --git a/src/database/types.rs b/src/database/types.rs
index 4d2c220..0d89adb 100644
--- a/src/database/types.rs
+++ b/src/database/types.rs
@@ -88,12 +88,14 @@ impl Message {
#[derive(Serialize)]
pub struct Info {
name: String,
+ version: &'static str,
users: usize,
}
impl Info {
pub fn get(db: std::sync::MutexGuard<crate::database::Database>) -> Info {
Info{
name: String::from("Testing"),
+ version: option_env!("CARGO_PKG_VERSION").unwrap(),
users: db.get_user_count(),
}
}