Compare commits
No commits in common. "4fce2625518df3da139219cdf940a4eb449ae05e" and "60f0219e85a74e9a41c834179983d41689a3a9e3" have entirely different histories.
4fce262551
...
60f0219e85
2 changed files with 2 additions and 10 deletions
|
@ -8,15 +8,7 @@ use crate::{
|
||||||
schema::refresh_tokens::{self, dsl},
|
schema::refresh_tokens::{self, dsl},
|
||||||
};
|
};
|
||||||
|
|
||||||
/// `GET /api/v1/logout`
|
// TODO: Should maybe be a delete request?
|
||||||
///
|
|
||||||
/// 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,
|
||||||
|
|
|
@ -24,7 +24,7 @@ struct Response {
|
||||||
build_number: String,
|
build_number: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// `GET /api/v1/stats` Returns stats about the server
|
/// `GET /api/v1/` Returns stats about the server
|
||||||
///
|
///
|
||||||
/// requires auth: no
|
/// requires auth: no
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue