mirror of
https://github.com/shiroyashik/sculptor.git
synced 2025-12-06 13:01:12 +03:00
added session check + updates check fixed
This commit is contained in:
parent
63f0b0d732
commit
584983810b
4 changed files with 36 additions and 14 deletions
|
|
@ -34,7 +34,7 @@ use api::{
|
|||
|
||||
// Auth
|
||||
mod auth;
|
||||
use auth::UManager;
|
||||
use auth::{UManager, check_auth};
|
||||
|
||||
// Config
|
||||
mod state;
|
||||
|
|
@ -112,6 +112,7 @@ async fn main() -> Result<()> {
|
|||
let api = Router::new()
|
||||
.nest("//auth", api_auth::router())
|
||||
.nest("/v1", api::v1::router())
|
||||
.route("/", get(check_auth))
|
||||
.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