add cookie
This commit is contained in:
parent
ad02bc3714
commit
a998928202
4 changed files with 13 additions and 8 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue