homepage.js/routes/articles.js

21 lines
539 B
JavaScript

const handler = require('express-async-handler');
const Helpers = require('../helpers');
const db = require('../models');
const Sequelize = require('../models');
function articles(req, res) {
res.template('articles/articles.pug', {
current_route: res.originalUrl
});
}
function manga(req, res) {
res.template('articles/manga.pug', {
current_route: res.originalUrl
})
}
module.exports = (router) => {
router.get('/articles', handler(articles));
router.get('/articles/manga', handler(manga));
}