...
|
...
|
@@ -9,6 +9,8 @@ const express = require('express'); |
|
|
const router = express.Router(); // eslint-disable-line
|
|
|
const cRoot = './controllers';
|
|
|
|
|
|
const newUserController = require(`${cRoot}/new-user`);
|
|
|
|
|
|
const tabsMiddleware = require(`${cRoot}/general-tabs`);
|
|
|
const indexController = require(`${cRoot}/index`);
|
|
|
const commentController = require(`${cRoot}/comment`);
|
...
|
...
|
@@ -243,4 +245,7 @@ router.get('/gift', [tabsMiddleware.getCommonHeader, tabsMiddleware.getHomeNav], |
|
|
|
|
|
router.post('/gift/exchange', giftController.exchange);
|
|
|
|
|
|
// 是否新客(仅操作cookie)
|
|
|
router.get('/newuser', newUserController.check);
|
|
|
|
|
|
module.exports = router; |
...
|
...
|
|