/t endpoint
This commit is contained in:
parent
59029e48ad
commit
26bde1e4a8
2 changed files with 3 additions and 6 deletions
|
|
@ -34,10 +34,10 @@ $router->mount('/@([^/]+)', function () use ($router) {
|
|||
$router->get('/rss', 'UserController@rss');
|
||||
});
|
||||
|
||||
/**
|
||||
* @deprecated Please use /@username/video/id instead
|
||||
*/
|
||||
// Deprecated, please use /@USERNAME/video/VIDEO_ID instead
|
||||
$router->get('/video/(\w+)', 'VideoController@get');
|
||||
// Workaround that allows /t endpoints
|
||||
$router->get('/t/([^/]+)', 'VideoController@get');
|
||||
|
||||
$router->mount('/tag/([^/]+)', function () use ($router) {
|
||||
$router->get('/', 'TagController@get');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue