added session check + updates check fixed

This commit is contained in:
Shiroyasha 2024-07-23 23:35:09 +03:00
parent 63f0b0d732
commit 584983810b
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
4 changed files with 36 additions and 14 deletions

View file

@ -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))