simpler-auth+no-overlay
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user