generated from panliang/owl-admin-starter
26 lines
971 B
PHP
26 lines
971 B
PHP
<?php
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register API routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
| be assigned to the "api" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
Route::post('web/upload', [\App\Http\Controllers\WebController::class, 'upload']);
|
|
|
|
Route::post('login', [\App\Http\Controllers\Api\AuthController::class, 'login']);
|
|
|
|
Route::group(['middleware' => 'auth:api'], function () {
|
|
Route::get('logout', [\App\Http\Controllers\Api\AccountController::class, 'logout']);
|
|
Route::get('user/profile', [\App\Http\Controllers\Api\AccountController::class, 'profile']);
|
|
Route::post('user/profile', [\App\Http\Controllers\Api\AccountController::class, 'update']);
|
|
});
|