Files
app-test-laravel/routes/api.php
person-programmer 9c590d0dbf init
2025-12-02 13:27:19 +07:00

20 lines
658 B
PHP

<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\Admin;
/*
|--------------------------------------------------------------------------
| 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::post('get-customer',[Admin::class,'getCustomer']);
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});