change route to service<resource>

This commit is contained in:
marin postma 2021-06-24 19:02:28 +02:00
parent 3b601f615a
commit 01b09c065b
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
7 changed files with 30 additions and 30 deletions

View file

@ -90,13 +90,13 @@ pub fn dashboard(config: &mut web::ServiceConfig, enable_frontend: bool) {
}
config.service(scope);
} else {
config.route("/", web::get().to(routes::running));
config.service(web::resource("/").route(web::get().to(routes::running)));
}
}
#[cfg(not(feature = "mini-dashboard"))]
pub fn dashboard(config: &mut web::ServiceConfig, _enable_frontend: bool) {
config.route("/", web::get().to(routes::running));
config.service(web::resource("/").route(web::get().to(routes::running)));
}
#[macro_export]