some beta stuff

This commit is contained in:
biglyderv 2025-02-26 22:12:46 -05:00
parent 2c480909ee
commit 4eddd1a0c7
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
7 changed files with 82 additions and 9 deletions

View file

@ -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' }