summary refs log tree commit diff
path: root/src/api/routes.js
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-06-02 12:16:30 +0200
committerRory& <root@rory.gay>2025-06-02 12:16:30 +0200
commitea65ae3a11e03fa66f809be89f86baabf627ad82 (patch)
tree377af52ba925269feea603ab716fd52d950154bb /src/api/routes.js
parentFix readme (diff)
downloadnodejs-final-assignment-ea65ae3a11e03fa66f809be89f86baabf627ad82.tar.xz
Try to fix auth
Diffstat (limited to 'src/api/routes.js')
-rw-r--r--src/api/routes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes.js b/src/api/routes.js

index 1853b57..279b1ef 100644 --- a/src/api/routes.js +++ b/src/api/routes.js
@@ -78,7 +78,7 @@ export function registerRoutes(app) { routeMethod ); app[routeMethodName](route.path, [ - ...routeMethod.middlewares, + ...(routeMethod.middlewares || []), routeMethod.method ]); routeCount++;