Confirm potentially destructive actions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-07 20:01:31 +02:00
parent 4c5e1080ca
commit 5dc3f49d73
3 changed files with 19 additions and 3 deletions

View File

@ -7,9 +7,9 @@ use std::io::ErrorKind;
pub mod auth_controller;
pub mod server_controller;
pub mod static_controller;
pub mod sys_info_controller;
pub mod vm_controller;
pub mod static_controller;
/// Custom error to ease controller writing
#[derive(Debug)]

View File

@ -11,7 +11,9 @@ use actix_web::{web, App, HttpServer};
use light_openid::basic_state_manager::BasicStateManager;
use remote_backend::app_config::AppConfig;
use remote_backend::constants;
use remote_backend::controllers::{auth_controller, server_controller, static_controller, sys_info_controller, vm_controller};
use remote_backend::controllers::{
auth_controller, server_controller, static_controller, sys_info_controller, vm_controller,
};
use remote_backend::middlewares::auth_middleware::AuthChecker;
use std::time::Duration;
@ -108,7 +110,7 @@ async fn main() -> std::io::Result<()> {
"/api/sysinfo/status",
web::get().to(sys_info_controller::status),
)
// Static assets
// Static assets
.route("/", web::get().to(static_controller::root_index))
.route(
"/{tail:.*}",