19 lines
727 B
PHP
19 lines
727 B
PHP
<?php
|
|
|
|
use App\Http\Controllers\APIS\CustomerApi\CustomerController;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
Route::get('/adminapi', function () {
|
|
return ('Welcome to admin api routes.');
|
|
});
|
|
|
|
// Route::post('')
|
|
|
|
|
|
//******************************************************* Customer API********************************************************
|
|
Route::post('/customer/create-or-update', [CustomerController::class, 'createOrUpdateCustomer'])->name('customer.create-or-update');
|
|
Route::get('/customer/list', [CustomerController::class, 'listCustomers'])->name('customer.list');
|
|
Route::delete('/customer/delete/{customerId}', [CustomerController::class, 'deleteCustomers'])->name('customer.delete');
|