fix unauthed bug and icons

This commit is contained in:
biglyderv 2025-02-25 22:59:18 -05:00
parent cede9d3021
commit 9cdf2326b8
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
3 changed files with 130 additions and 2 deletions

View file

@ -31,6 +31,7 @@ async function auther(req, res, next) {
if (!token) {
res.auth = {};
next();
return;
}
@ -66,8 +67,9 @@ function initr(req, res, next) {
if (!res.auth || !res.auth.valid) {
headerCtx = [
{ link: '/walls/get/home', icon: '/icon.svg', name: 'DervNet' },
{ link: '/you/login', icon: '/walls.svg', name: 'Log in' },
{ link: '/you/new', icon: '/walls.svg', name: 'Join' }
{ link: '/walls/list', icon: '/walls.svg', name: 'Explore' },
{ link: '/you/login', icon: '/login.svg', name: 'Log in' },
{ link: '/you/new', icon: '/join.svg', name: 'Join' }
];
}