mastodon-archive-stats/express_gen/routes/index.js

13 lines
300 B
JavaScript
Raw Normal View History

2020-07-19 16:47:39 +02:00
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
router.get('/stats', function(req, res, next) {
res.render('stats', { title: 'Stats' });
});
module.exports = router;