mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
37 lines
1.4 KiB
PHP
37 lines
1.4 KiB
PHP
<?php
|
|
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register API routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| is assigned the "api" middleware group. Enjoy building your API!
|
|
|
|
|
*/
|
|
|
|
Route::group(['prefix' => 'v1', 'namespace' => 'Api', 'middleware' => 'fw-block-blacklisted'], function () {
|
|
Route::get('api', 'ApiController@api');
|
|
Route::post('api', 'ApiController@api');
|
|
});
|
|
|
|
Route::group(['prefix' => 'v2', 'namespace' => 'Api'], function () {
|
|
Route::get('capabilities', 'ApiV2Controller@capabilities');
|
|
Route::post('capabilities', 'ApiV2Controller@capabilities');
|
|
});
|
|
|
|
Route::group(['prefix' => 'v2', 'namespace' => 'Api', 'middleware' => ['auth:api', 'throttle:rate_limit,1', 'fw-block-blacklisted']], function () {
|
|
Route::get('movies', 'ApiV2Controller@movie');
|
|
Route::post('movies', 'ApiV2Controller@movie');
|
|
Route::get('search', 'ApiV2Controller@search');
|
|
Route::post('search', 'ApiV2Controller@search');
|
|
Route::get('tv', 'ApiV2Controller@tv');
|
|
Route::post('tv', 'ApiV2Controller@tv');
|
|
Route::get('getnzb', 'ApiV2Controller@getNzb');
|
|
Route::post('getnzb', 'ApiV2Controller@getNzb');
|
|
Route::get('details', 'ApiV2Controller@details');
|
|
Route::post('details', 'ApiV2Controller@details');
|
|
});
|