mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-04 15:49:51 +00:00
url params in route paths simplified
This commit is contained in:
parent
9ab0d0ee40
commit
569123b8ec
1 changed files with 3 additions and 3 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue