forked from XiaoLFeng/XF_Index
API路由表
This commit is contained in:
parent
6515e662ea
commit
7dafb62a97
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
use App\Http\Controllers\Authme;
|
||||
use App\Http\Controllers\Function\Link;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
|
@ -26,7 +27,7 @@
|
|||
return $request->user();
|
||||
});
|
||||
|
||||
Route::prefix('api')->group(function () {
|
||||
// 登陆类
|
||||
Route::prefix('auth')->group(function () {
|
||||
Route::post('login',[Authme::class,'Login'])->name('api.auth.login');
|
||||
Route::post('register',[Authme::class,'Register'])->name('api.auth.register');
|
||||
|
@ -35,4 +36,13 @@
|
|||
return Response::redirectTo('');
|
||||
})->name('logout');
|
||||
});
|
||||
|
||||
// 友链类
|
||||
Route::prefix('link')->group(function () {
|
||||
Route::prefix('console')->group(function () {
|
||||
|
||||
});
|
||||
Route::prefix('custom')->group(function () {
|
||||
Route::post('add',[Link::class,'apiCustomAdd']);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user