reply chain fixes, refactoring
This commit is contained in:
parent
f0782b0472
commit
93027bfd09
4 changed files with 42 additions and 43 deletions
|
@ -63,14 +63,14 @@ async function auther(req, res, next) {
|
|||
|
||||
function initr(req, res, next) {
|
||||
let headerCtx = [
|
||||
{ link: '/walls/get/home', icon: '/icon.svg', name: 'DervNet' },
|
||||
{ link: '/walls/get/home/0', icon: '/icon.svg', name: 'DervNet' },
|
||||
{ link: '/walls/list', icon: '/walls.svg', name: 'Explore' },
|
||||
{ link: '/you/logout', icon: '/logout.svg', name: 'Leave' } // fix icon
|
||||
];
|
||||
|
||||
if (!res.auth || !res.auth.valid) {
|
||||
headerCtx = [
|
||||
{ link: '/walls/get/home', icon: '/icon.svg', name: 'DervNet' },
|
||||
{ link: '/walls/get/home/0', icon: '/icon.svg', name: 'DervNet' },
|
||||
{ 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' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue