From 03d07fc56b26897dcec530630b07d18fc606d364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lipi=C5=84ski?= Date: Fri, 17 Nov 2023 05:06:57 +0100 Subject: [PATCH] fix: remove static_routers from api - static_routers are not present in api anyway and it breaks generated project --- src/template/src/routers/mod.hbs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/template/src/routers/mod.hbs b/src/template/src/routers/mod.hbs index 137ef3b..e4c218d 100644 --- a/src/template/src/routers/mod.hbs +++ b/src/template/src/routers/mod.hbs @@ -81,8 +81,7 @@ pub fn router() -> Router { .delete(delete_user), ), ]; - let static_routers = static_routers::create_static_routers(); - no_auth_routers.extend(static_routers); + let router = Router::new() .hoop(Logger::new()) .hoop(CatchPanic::new())