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: [] urlParamsNames: []
}, },
player: { player: {
regexp: /^\/player\/?$/i, regexp: /^\/player\/(?:([^\/]+?))\/(?:([^\/]+?))\/(?:([^\/]+?))\/(?:([^\/]+?))\/?$/i,
urlParamsNames: [] urlParamsNames: ['type', 'id', 'videoId', 'stream']
} }
}; };