summaryrefslogtreecommitdiff
path: root/src/public/docs.rs
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-08-21 15:16:48 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-08-21 15:16:48 -0400
commit2adbe0d9990bb74942377a07c05981b8a0e73c75 (patch)
treeec5a1f8341b84fec6ae4428e1bdee8256c03d38e /src/public/docs.rs
parentstart dms (diff)
downloadxssbook-2adbe0d9990bb74942377a07c05981b8a0e73c75.tar.gz
xssbook-2adbe0d9990bb74942377a07c05981b8a0e73c75.tar.bz2
xssbook-2adbe0d9990bb74942377a07c05981b8a0e73c75.zip
websocket
Diffstat (limited to 'src/public/docs.rs')
-rw-r--r--src/public/docs.rs4
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,