Skip to content

Commit ce2c88d

Browse files
committed
Added fake authorization layer
1 parent 39ea8a4 commit ce2c88d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/utils/auth.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export const checkAuth = (req: any, res: any, next: any) => {
2+
if (req.url.includes('/admin') || req.url.includes('favico')) {
3+
next();
4+
} else {
5+
res.status(403).send('Unauthorized!');
6+
return;
7+
}
8+
};

0 commit comments

Comments
 (0)