You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
869 B
23 lines
869 B
<?php |
|
|
|
use App\Api\Middleware\ApiAuthenticateMiddleware; |
|
use App\Api\Middleware\ApiTokenSetMiddleware; |
|
use App\Route; |
|
use Plugins\ApiDoc\Api\Controller\DemoController; |
|
|
|
Route::group('plugins/api-demo', function () { |
|
Route::group(function () { |
|
Route::group(function () { |
|
Route::get('authenticate', [DemoController::class, 'authenticate']); |
|
Route::get('refresh-token', [DemoController::class, 'refreshToken']); |
|
})->middleware([ApiAuthenticateMiddleware::class]); |
|
|
|
|
|
Route::post('post', [DemoController::class, 'post']); |
|
Route::get('return', [DemoController::class, 'return']); |
|
})->middleware([ApiTokenSetMiddleware::class]); |
|
|
|
Route::get('get', [DemoController::class, 'get']); |
|
Route::get('version', [DemoController::class, 'version']); |
|
Route::post('login', [DemoController::class, 'login']); |
|
});
|
|
|