From 2adbe0d9990bb74942377a07c05981b8a0e73c75 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Mon, 21 Aug 2023 15:16:48 -0400 Subject: websocket --- src/public/docs.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/public/docs.rs') 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, -- cgit v1.2.3-freya