Files
app-test-laravel/routes/api.php
effendy-dev 461a740be0 first commit
2025-12-01 14:04:35 +07:00

21 lines
659 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();
});