/video follows TikTok schema
This commit is contained in:
parent
c682432920
commit
6eee156541
6 changed files with 24 additions and 15 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue