/t endpoint
This commit is contained in:
parent
59029e48ad
commit
26bde1e4a8
|
@ -1,9 +1,6 @@
|
|||
<?php
|
||||
namespace App\Controllers;
|
||||
|
||||
/**
|
||||
* @deprecated Please use UserController::video instead
|
||||
*/
|
||||
class VideoController {
|
||||
static public function get(string $video_id) {
|
||||
UserController::video('placeholder', $video_id);
|
||||
|
|
|
@ -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…
Reference in a new issue