♻️ (pagetop): Adapta extensiones a Routes y StaticFiles
This commit is contained in:
parent
4062a57cff
commit
a0416e5670
7 changed files with 18 additions and 18 deletions
|
|
@ -391,11 +391,11 @@ impl Extension for Cron {
|
|||
scheduler::shutdown().await;
|
||||
}
|
||||
|
||||
fn configure_router(&self, router: Router) -> Router {
|
||||
fn configure_router(&self, routes: Routes) -> Routes {
|
||||
if config::SETTINGS.mode != config::CronMode::External {
|
||||
return router;
|
||||
return routes;
|
||||
}
|
||||
router.route(TRIGGER_PATH, web::post(trigger_post).fallback(not_found))
|
||||
routes.public_route(TRIGGER_PATH, web::post(trigger_post).fallback(not_found))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue