feat: Implement order and invoice management, enhance addon features, and remove the 'Type' module.
This commit is contained in:
+11
-2
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\Api\Client\ClientController;
|
||||
use App\Http\Controllers\Api\Service\OrderController;
|
||||
use App\Http\Controllers\Api\Service\ServiceController;
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::prefix('v1')->group(function () {
|
||||
// Auth
|
||||
@@ -19,12 +20,20 @@ Route::prefix('v1')->group(function () {
|
||||
});
|
||||
});
|
||||
|
||||
Route::prefix('services')->middleware('api.auth')->as('services.')->group(function () {
|
||||
// Services (Products) - Public & Protected Routes
|
||||
Route::prefix('services')->as('services.')->group(function () {
|
||||
Route::controller(ServiceController::class)->group(function () {
|
||||
Route::get('get-list', 'getService')->name('getList');
|
||||
Route::get('{product:slug}', 'getDetailService')->name('detail');
|
||||
});
|
||||
});
|
||||
|
||||
Route::middleware(['api.auth'])->prefix('orders')->as('orders.')->group(function () {
|
||||
Route::controller(OrderController::class)->group(function () {
|
||||
Route::post('/', 'storeOrder')->name('store');
|
||||
Route::post('{id}/pay', 'payOrder')->name('pay');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user