feat: Implement order and invoice management, enhance addon features, and remove the 'Type' module.

This commit is contained in:
pbao9
2026-02-11 17:02:07 +07:00
parent 58a9aa685b
commit 556b2c02e6
47 changed files with 1367 additions and 497 deletions
+11 -2
View File
@@ -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');
});
});
});