20 lines
457 B
JavaScript
20 lines
457 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: {
|
|
code: [
|
|
{ name: 'thaldrin', source: '/p/thaldrin' },
|
|
{ name: 'website', source: '/p/website' },
|
|
{ name: 'yiff', source: '/p/yiff' }
|
|
]
|
|
}
|
|
});
|
|
});
|
|
|
|
module.exports = portfolio;
|