some beta stuff
This commit is contained in:
parent
2c480909ee
commit
4eddd1a0c7
7 changed files with 82 additions and 9 deletions
|
@ -26,9 +26,11 @@ const aliases = {
|
|||
const routers = {
|
||||
'/you': './routes/you.js',
|
||||
'/api/form/you': './routes/youApi.js',
|
||||
'/api/file/you': './routes/youApi.js',
|
||||
'/api/file/comment': './routes/commenter.js',
|
||||
'/walls': './routes/walls.js',
|
||||
'/comment': './routes/comment.js'
|
||||
'/comment': './routes/comment.js',
|
||||
'/users': './routes/user.js'
|
||||
}
|
||||
|
||||
function doAliases(app) {
|
||||
|
@ -74,14 +76,14 @@ async function auther(req, res, next) {
|
|||
|
||||
function initr(req, res, next) {
|
||||
let headerCtx = [
|
||||
{ link: '/walls/get/home/0', icon: '/icon.svg', name: 'DervNet' },
|
||||
{ link: '/walls/get/hub/main/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/0', icon: '/icon.svg', name: 'DervNet' },
|
||||
{ link: '/walls/get/hub/main/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