mirror of
https://github.com/aoaostar/toolbox.git
synced 2025-12-27 15:01:17 +00:00
25 lines
552 B
PHP
25 lines
552 B
PHP
<?php
|
|
|
|
use think\facade\Route;
|
|
|
|
Route::group('api', function () {
|
|
Route::any('plugins', 'Plugin/all');
|
|
Route::any('categories', 'Category/all');
|
|
Route::any('record', 'Plugin/record');
|
|
Route::any('captcha', function (){
|
|
return captcha();
|
|
});
|
|
})->prefix('api.');
|
|
|
|
|
|
|
|
Route::group('api', function () {
|
|
Route::any('plugin/star', 'Plugin/star');
|
|
Route::get('mine', 'User/get');
|
|
Route::get('user', 'User/get');
|
|
Route::post('user', 'User/update');
|
|
})->prefix('api.')
|
|
->middleware(\app\middleware\Auth::class);
|
|
|
|
|