change discord link / remove useless routes

This commit is contained in:
ry 2020-01-10 23:11:41 +01:00
parent 32bdc1ad23
commit ba82e4f01e
5 changed files with 2 additions and 68 deletions

View file

@ -1,11 +0,0 @@
var express = require('express');
var art = express.Router();
art.get('/', (req, res) => {
res.status(200).jsonp({
site: 'art',
done: false
});
});
module.exports = art;

View file

@ -1,13 +0,0 @@
var express = require('express');
var lore = express.Router();
const con = require('../constants');
lore.get('/', (req, res) => {
res.render('story', {
layout: 'lore',
name: `${con.name}`,
host: req.hostname
});
});
module.exports = lore;

View file

@ -1,21 +0,0 @@
var express = require('express');
var p = express.Router();
const con = require('../constants');
p.get('/', (req, res) => {
res.redirect('/portfolio');
});
p.get('/thaldrin', (req, res) => {
res.redirect('https://gitdab.com/r/thaldrin');
});
p.get('/kaito', (req, res) => {
res.redirect('https://github.com/codepupper/kaito');
});
p.get('/website', (req, res) => {
res.redirect('https://gitdab.com/y/website');
});
p.get('/yiff', (req, res) => {
res.redirect('https://github.com/codepupper/yiff');
});
module.exports = p;

View file

@ -1,9 +0,0 @@
var express = require('express');
var portfolio = express.Router();
const con = require('../constants');
portfolio.get('/', (req, res) => {
res.redirect('https://shyzu.link')
});
module.exports = portfolio;

View file

@ -25,14 +25,7 @@ app.engine(
'hbs', 'hbs',
hbs({ hbs({
extname: 'hbs', extname: 'hbs',
defaultView: 'default', defaultView: 'default'
helpers: {
ifeq: function (a, b, options) {
if (a === b) {
return options.fn(this);
}
}
}
}) })
); );
@ -64,11 +57,6 @@ app.use(
}) })
); );
app.use('/portfolio', require('./routes/portfolio'));
app.use('/p', require('./routes/p'));
app.use('/lore', require('./routes/lore'));
app.use('/art', require('./routes/art'));
module.exports = (client) => { module.exports = (client) => {
app.get('/', async (req, res) => { app.get('/', async (req, res) => {
/* var ua = UA(req.headers['user-agent']); /* var ua = UA(req.headers['user-agent']);
@ -93,7 +81,7 @@ module.exports = (client) => {
{ {
name: 'Discord', name: 'Discord',
color: '7289da', color: '7289da',
link: 'discord.furretreat.rocks', link: 'furretreat.rocks',
icon: simpleIcons.Discord icon: simpleIcons.Discord
}, },
{ {