feat: Implement comprehensive product management, including categories, pricing, and integration into the order system.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\Api\Setting\SettingController;
|
||||
use App\Http\Controllers\Api\Client\ClientController;
|
||||
use App\Http\Controllers\Api\Service\OrderController;
|
||||
use App\Http\Controllers\Api\Service\ServiceController;
|
||||
@@ -30,14 +31,23 @@ Route::prefix('v1')->group(function () {
|
||||
|
||||
Route::middleware(['api.auth'])->prefix('orders')->as('orders.')->group(function () {
|
||||
Route::controller(OrderController::class)->group(function () {
|
||||
Route::get('/', 'getList')->name('list');
|
||||
Route::post('/', 'storeOrder')->name('store');
|
||||
Route::post('{id}/pay', 'payOrder')->name('pay');
|
||||
});
|
||||
});
|
||||
|
||||
Route::prefix('setting')->as('setting.')->group(function () {
|
||||
Route::controller(SettingController::class)->group(function () {
|
||||
Route::get('/', 'getSetting')->name('get');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Route::any('{any}', function () {
|
||||
return response()->json([
|
||||
'error' => true,
|
||||
|
||||
Reference in New Issue
Block a user