2024-01-20 04:13:20 +08:00

63 lines
1.2 KiB
JavaScript

/*
'use strict';
var router = require('express').Router();
const conf = require('../conf')
const values ={
title: conf.environment !== 'production' ? `<i class="fa-brands fa-dev"></i>` : ''
}
router.get('/', async function(req, res, next) {
res.render('runner', {...values});
});
router.get('/topics', function(req, res, next) {
res.render('topics', {...values});
});
router.get('/chat', function(req, res, next) {
res.render('chat', {...values});
});
router.get('/login*', function(req, res, next) {
res.render('login', {redirect: req.query.redirect, ...values});
});
router.get('/runner', function(req, res, next) {
res.render('runner', {...values});
});
router.get('/worker', function(req, res, next) {
res.render('worker', {...values});
});
module.exports = router;
*/
'use strict';
var router = require('express').Router();
//landing page of index
router.get('/', function(req, res, next) {
res.render('index');
});
//news page
router.get('/news', function(req, res, next) {
res.render('news');
});
//login | register page
router.get('/login', function(req, res, next) {
res.render('signuplogin');
});
module.exports = router;