♻️ (pagetop): Adapta extensiones a Routes y StaticFiles

This commit is contained in:
Manuel Cillero 2026-11-07 16:39:54 +01:00
parent 4062a57cff
commit a0416e5670
7 changed files with 18 additions and 18 deletions

View file

@ -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))
}
}