diff --git a/src/routers/api.ts b/src/routers/api.ts index 19159a2..b4fd4c5 100644 --- a/src/routers/api.ts +++ b/src/routers/api.ts @@ -22,14 +22,15 @@ const adminAuthMiddleware = (req: Request, res: Response, next: NextFunction) => (user && user.admin) ? next() : res.sendStatus(401); }; function buildUserRouter() { - const RouterUser = Router(); + const userRouter = Router(); - return RouterUser; + return userRouter; } + function buildResourceRouter() { - const RouterResource = Router(); + const resourceRouter = Router(); - return RouterResource; + return resourceRouter; } /**