bin/routes/main.js

11 lines
268 B
JavaScript
Raw Normal View History

2023-03-04 02:09:05 +01:00
const express = require('express');
const router = express.Router();
const handler = require('express-async-handler');
async function index(req, res) {
res.render('main', {maxlen: process.env.MAXLEN});
}
router.get('/', handler(index));
module.exports = router;