Compare commits

...

2 commits

Author SHA1 Message Date
4fce262551 docs: add documentation to logout endpoint
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful
2025-05-31 14:52:57 +02:00
1e993026a0 fix: add missing /stats to docs 2025-05-31 14:52:42 +02:00
2 changed files with 10 additions and 2 deletions

View file

@ -8,7 +8,15 @@ use crate::{
schema::refresh_tokens::{self, dsl},
};
// TODO: Should maybe be a delete request?
/// `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)
///
#[post("/logout")]
pub async fn res(
req: HttpRequest,

View file

@ -24,7 +24,7 @@ struct Response {
build_number: String,
}
/// `GET /api/v1/` Returns stats about the server
/// `GET /api/v1/stats` Returns stats about the server
///
/// requires auth: no
///