mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 12:54:26 +01:00
Changes
1. Removed redundant scope registration
This commit is contained in:
parent
151f691609
commit
bffab21b10
@ -147,7 +147,6 @@ pub fn dashboard(config: &mut web::ServiceConfig, enable_frontend: bool) {
|
|||||||
|
|
||||||
if enable_frontend {
|
if enable_frontend {
|
||||||
let generated = generated::generate();
|
let generated = generated::generate();
|
||||||
let scope = web::scope("/");
|
|
||||||
// Generate routes for mini-dashboard assets
|
// Generate routes for mini-dashboard assets
|
||||||
for (path, resource) in generated.into_iter() {
|
for (path, resource) in generated.into_iter() {
|
||||||
let Resource {
|
let Resource {
|
||||||
@ -164,7 +163,6 @@ pub fn dashboard(config: &mut web::ServiceConfig, enable_frontend: bool) {
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
config.service(scope);
|
|
||||||
} else {
|
} else {
|
||||||
config.service(web::resource("/").route(web::get().to(routes::running)));
|
config.service(web::resource("/").route(web::get().to(routes::running)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user