args_api/endpoint/auth/logout.rs
1use serde::{Deserialize, Serialize};
2
3use crate::endpoint::Endpoint;
4
5pub struct Logout;
6
7impl Endpoint for Logout {
8 const PATH: &'static str = "/auth/logout";
9 const METHOD: http::Method = http::Method::POST;
10
11 type Request = LogoutRequest;
12 type Response = ();
13}
14
15#[derive(ApiRequest, Debug, Serialize, Deserialize)]
16pub struct LogoutRequest {
17 pub refresh_token: String,
18}