simpler-auth+no-overlay
Some checks failed
Deploy / deploy (push) Has been skipped
CI / lint (push) Failing after 8s
CI / test (push) Failing after 3m57s

This commit is contained in:
2025-09-01 20:36:15 +03:00
parent a44bf3302b
commit 6c3262edbe
20 changed files with 1516 additions and 686 deletions

View File

@@ -1,9 +1,7 @@
mod app_state;
mod auth;
mod core;
mod handlers;
mod lookup;
mod overlay;
mod s3_utils;
mod thumbnail;
@@ -16,8 +14,9 @@ use actix_web::{
use app_state::AppState;
use handlers::{
get_quota_handler, increase_quota_handler, proxy_handler, root_handler, set_quota_handler,
upload_handler,
get_current_user_handler, get_quota_handler,
increase_quota_handler, proxy_handler,
set_quota_handler, upload_handler,
};
use log::warn;
use std::env;
@@ -64,7 +63,7 @@ async fn main() -> std::io::Result<()> {
.app_data(web::Data::new(app_state.clone()))
.wrap(cors)
.wrap(Logger::default())
.route("/", web::get().to(root_handler))
.route("/", web::get().to(get_current_user_handler))
.route("/", web::post().to(upload_handler))
.route("/quota", web::get().to(get_quota_handler))
.route("/quota/increase", web::post().to(increase_quota_handler))