diff options
-rw-r--r-- | TODO | 11 | ||||
-rw-r--r-- | src/database/types.rs | 2 |
2 files changed, 12 insertions, 1 deletions
@@ -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(), } } |