♻️ (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
|
|
@ -5,8 +5,8 @@ struct TestApp;
|
|||
|
||||
#[async_trait]
|
||||
impl Extension for TestApp {
|
||||
fn configure_router(&self, router: Router) -> Router {
|
||||
router.route("/echo", web::get(echo_request))
|
||||
fn configure_router(&self, routes: Routes) -> Routes {
|
||||
routes.public_route("/echo", web::get(echo_request))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue