* change '/search/:keyword' to optional * feat: add more info to description * feat: add '/params/city' and '/params/style' for params look up reason for adding this route: it's hard to find route params in url, expecially in mobile mode, the wap.showstasrt.com website url doesn't match the shows city and style * chore: implement sortBy and uniqBy * chore: move sortBy, uniqBy to utils
6 lines
214 B
JavaScript
6 lines
214 B
JavaScript
module.exports = (router) => {
|
|
router.get('/event/:cityCode/:showStyle?', require('./event'));
|
|
router.get('/search/:keyword?', require('./search'));
|
|
router.get('/params/:type', require('./params'));
|
|
};
|