diff --git a/src/api/v1/auth/logout.rs b/src/api/v1/auth/logout.rs index d801ad7..79b5c36 100644 --- a/src/api/v1/auth/logout.rs +++ b/src/api/v1/auth/logout.rs @@ -8,15 +8,7 @@ use crate::{ schema::refresh_tokens::{self, dsl}, }; -/// `GET /api/v1/logout` -/// -/// requires auth: kinda, needs refresh token set but no access token is technically required -/// -/// ### Responses -/// 200 Logged out -/// 404 Refresh token is invalid -/// 401 Unauthorized (no refresh token found) -/// +// TODO: Should maybe be a delete request? #[post("/logout")] pub async fn res( req: HttpRequest, diff --git a/src/api/v1/stats.rs b/src/api/v1/stats.rs index 760ec71..5877c00 100644 --- a/src/api/v1/stats.rs +++ b/src/api/v1/stats.rs @@ -24,7 +24,7 @@ struct Response { build_number: String, } -/// `GET /api/v1/stats` Returns stats about the server +/// `GET /api/v1/` Returns stats about the server /// /// requires auth: no ///