player route regexp implemented

This commit is contained in:
NikolaBorislavovHristov 2019-09-25 15:13:32 +03:00
parent 0696ac48ac
commit 1cbb5ed911

View file

@ -32,8 +32,8 @@ const routesRegexp = {
urlParamsNames: []
},
player: {
regexp: /^\/player\/?$/i,
urlParamsNames: []
regexp: /^\/player\/(?:([^\/]+?))\/(?:([^\/]+?))\/(?:([^\/]+?))\/(?:([^\/]+?))\/?$/i,
urlParamsNames: ['type', 'id', 'videoId', 'stream']
}
};