diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-08-21 15:16:48 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-08-21 15:16:48 -0400 |
commit | 2adbe0d9990bb74942377a07c05981b8a0e73c75 (patch) | |
tree | ec5a1f8341b84fec6ae4428e1bdee8256c03d38e /src/public/docs.rs | |
parent | start dms (diff) | |
download | xssbook-2adbe0d9990bb74942377a07c05981b8a0e73c75.tar.gz xssbook-2adbe0d9990bb74942377a07c05981b8a0e73c75.tar.bz2 xssbook-2adbe0d9990bb74942377a07c05981b8a0e73c75.zip |
websocket
Diffstat (limited to 'src/public/docs.rs')
-rw-r--r-- | src/public/docs.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/public/docs.rs b/src/public/docs.rs index 7417183..976638b 100644 --- a/src/public/docs.rs +++ b/src/public/docs.rs @@ -10,6 +10,7 @@ use crate::{ use super::console::beautify; pub enum EndpointMethod { + Get, Post, Put, Patch, @@ -19,6 +20,7 @@ pub enum EndpointMethod { impl ToString for EndpointMethod { fn to_string(&self) -> String { match self { + Self::Get => "GET".to_owned(), Self::Post => "POST".to_owned(), Self::Put => "PUT".to_owned(), Self::Patch => "PATCH".to_owned(), @@ -147,6 +149,8 @@ pub async fn init() { chat::CHAT_LEAVE, chat::CHAT_SEND, chat::CHAT_LOAD, + chat::CHAT_TYPING, + chat::CHAT_CONNECT, admin::ADMIN_AUTH, admin::ADMIN_QUERY, admin::ADMIN_POSTS, |