url params in route paths simplified

This commit is contained in:
NikolaBorislavovHristov 2019-08-27 17:07:28 +03:00
parent 9ab0d0ee40
commit 569123b8ec

View file

@ -12,11 +12,11 @@ const compilePath = (path, options) => {
const routesRegexp = {
intro: compilePath('/intro'),
board: compilePath('/'),
discover: compilePath('/discover(?:/(:type|)(?:/(:catalog|))?)?'),
library: compilePath('/library(?:/(:type|)(?:/(:sort|))?)?'),
discover: compilePath('/discover/:type?/:catalog?'),
library: compilePath('/library/:sort?'),
calendar: compilePath('/calendar'),
search: compilePath('/search'),
detail: compilePath('/detail/:type/:id/:videoId'),
detail: compilePath('/detail/:type/:id/:videoId?'),
addons: compilePath('/addons'),
settings: compilePath('/settings'),
player: compilePath('/player')