/video follows TikTok schema

This commit is contained in:
Pablo Ferreiro 2022-03-14 11:50:47 +01:00
parent c682432920
commit 6eee156541
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
6 changed files with 24 additions and 15 deletions

View file

@ -30,9 +30,13 @@ $router->mount('/trending', function () use ($router) {
$router->mount('/@([^/]+)', function () use ($router) {
$router->get('/', 'UserController@get');
$router->get('/video/(\w+)', 'UserController@video');
$router->get('/rss', 'UserController@rss');
});
/**
* @deprecated Please use /@username/video/id instead
*/
$router->get('/video/(\w+)', 'VideoController@get');
$router->mount('/tag', function () use ($router) {