Added a feature to create temporary users

- Token verification simplified
This commit is contained in:
Shiroyasha 2024-06-18 16:01:23 +03:00
parent 4bd9a2ab2e
commit 7594e3d615
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
7 changed files with 60 additions and 45 deletions

View file

@ -94,9 +94,13 @@ async fn main() -> Result<()> {
}
});
let v1 = Router::new()
.nest("/", ws::http2ws_router())
.nest("/user", api_auth::router_v1());
let api = Router::new()
.nest("//auth", api_auth::router())
.nest("/v1", ws::http_router())
.nest("/v1", v1)
.route("/limits", get(api_info::limits))
.route("/version", get(api_info::version))
.route("/motd", get(api_info::motd))