docs: add documentation to logout endpoint
This commit is contained in:
parent
1e993026a0
commit
4fce262551
1 changed files with 9 additions and 1 deletions
|
@ -8,7 +8,15 @@ use crate::{
|
||||||
schema::refresh_tokens::{self, dsl},
|
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")]
|
#[post("/logout")]
|
||||||
pub async fn res(
|
pub async fn res(
|
||||||
req: HttpRequest,
|
req: HttpRequest,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue