18 lines
502 B
JavaScript
18 lines
502 B
JavaScript
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,
|
|
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' }
|
|
]
|
|
});
|
|
});
|
|
|
|
module.exports = portfolio;
|