yugen.work/routes/portfolio.js

19 lines
502 B
JavaScript
Raw Normal View History

2019-11-28 19:03:30 +00:00
var express = require('express');
var portfolio = express.Router();
const con = require('../constants');
portfolio.get('/', (req, res) => {
res.render('portfolio', {
layout: 'portfolio',
name: `${con.name} - portfolio`,
host: req.hostname,
2019-11-30 13:14:32 +00:00
portfolio: [
{ name: 'thaldrin', source: 'https://gitdab.com/r/thaldrin' },
{ name: 'homepage', source: 'https://gitdab.com/y/website' },
{ name: 'yiff', source: 'https://github.com/codepupper/yiff' }
]
2019-11-28 19:03:30 +00:00
});
});
module.exports = portfolio;