add cookie

This commit is contained in:
Wingy 2022-10-03 11:03:02 -04:00
parent ad02bc3714
commit a998928202
4 changed files with 13 additions and 8 deletions

View file

@ -29,6 +29,7 @@ module.exports = ({ db, config }) => {
const router = express.Router()
router.use('/', express.static(path.join(__dirname, '../static')))
router.use(require('cookie-parser')())
router.get('/',
async (req, res, next) => {