mirror of
https://github.com/shiroyashik/sculptor.git
synced 2025-12-06 13:01:12 +03:00
Added a feature to create temporary users
- Token verification simplified
This commit is contained in:
parent
4bd9a2ab2e
commit
7594e3d615
7 changed files with 60 additions and 45 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue