feat: Implement client-facing service management API with UUID for services and bulk actions for product services.
This commit is contained in:
@@ -5,6 +5,7 @@ use App\Http\Controllers\Api\Client\ClientController;
|
||||
use App\Http\Controllers\Api\Service\OrderController;
|
||||
use App\Http\Controllers\Api\Service\ProductCategoryController;
|
||||
use App\Http\Controllers\Api\Service\ServiceController;
|
||||
use App\Http\Controllers\Api\Client\Service\ServiceController as ServiceClientController;
|
||||
use App\Http\Controllers\Api\Transaction\TransactionController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
@@ -34,6 +35,18 @@ Route::prefix('v1')->as('api.')->group(function () {
|
||||
Route::patch('dich-vu/{id}/auto-renew', 'updateClientServiceAutoRenew')->name('services.autoRenew.update');
|
||||
});
|
||||
|
||||
|
||||
Route::middleware(['api.auth'])->prefix('client-service')->controller(ServiceClientController::class)->as('client-service.')->group(function () {
|
||||
Route::get('/', 'getService')->name('list');
|
||||
Route::get('{uuid}', 'getDetail')->name('detail');
|
||||
});
|
||||
|
||||
|
||||
Route::middleware(['api.auth'])->prefix('service')->controller(ServiceController::class)->as('service.')->group(function () {
|
||||
Route::get('/', 'getService')->name('list');
|
||||
Route::get('{uuid}', 'getDetailServiceCustomer')->name('detail');
|
||||
});
|
||||
|
||||
Route::middleware(['api.auth'])->controller(TransactionController::class)->group(function () {
|
||||
Route::get('payment-history', 'getClientPaymentHistory')->name('payment-history.list');
|
||||
});
|
||||
@@ -103,6 +116,8 @@ Route::prefix('v1')->as('api.')->group(function () {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Route::middleware(['api.auth'])->prefix('orders')->as('orders.')->group(function () {
|
||||
Route::controller(OrderController::class)->group(function () {
|
||||
Route::get('/', 'getList')->name('list');
|
||||
|
||||
Reference in New Issue
Block a user