diff options
author | Tyler Murphy <=> | 2023-07-26 01:04:39 -0400 |
---|---|---|
committer | Tyler Murphy <=> | 2023-07-26 01:04:39 -0400 |
commit | a2c89301d5c63f573ac6680f9c11acda69043a78 (patch) | |
tree | 5d3cccf39438a41f9465e87e06c8bb43834d12f6 /src/public/docs.rs | |
parent | allow port env (diff) | |
download | xssbook-a2c89301d5c63f573ac6680f9c11acda69043a78.tar.gz xssbook-a2c89301d5c63f573ac6680f9c11acda69043a78.tar.bz2 xssbook-a2c89301d5c63f573ac6680f9c11acda69043a78.zip |
start dms
Diffstat (limited to 'src/public/docs.rs')
-rw-r--r-- | src/public/docs.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/public/docs.rs b/src/public/docs.rs index 397e696..7417183 100644 --- a/src/public/docs.rs +++ b/src/public/docs.rs @@ -3,7 +3,7 @@ use lazy_static::lazy_static; use tokio::sync::Mutex; use crate::{ - api::{admin, auth, posts, users}, + api::{admin, auth, posts, users, chat}, types::http::ResponseCode, }; @@ -13,6 +13,7 @@ pub enum EndpointMethod { Post, Put, Patch, + Delete } impl ToString for EndpointMethod { @@ -21,6 +22,7 @@ impl ToString for EndpointMethod { Self::Post => "POST".to_owned(), Self::Put => "PUT".to_owned(), Self::Patch => "PATCH".to_owned(), + Self::Delete => "DELETE".to_owned(), } } } @@ -139,6 +141,12 @@ pub async fn init() { users::USERS_FOLLOW, users::USERS_FOLLOW_STATUS, users::USERS_FRIENDS, + chat::CHAT_LIST, + chat::CHAT_CREATE, + chat::CHAT_ADD, + chat::CHAT_LEAVE, + chat::CHAT_SEND, + chat::CHAT_LOAD, admin::ADMIN_AUTH, admin::ADMIN_QUERY, admin::ADMIN_POSTS, |