refactor: Replace specific Hosting and VPS models and repositories with a generic Service repository and associated customer API endpoints.

This commit is contained in:
pbao9
2026-03-13 07:50:35 +07:00
parent dbd3cdafcd
commit a388eabe17
12 changed files with 82 additions and 347 deletions
+1
View File
@@ -82,6 +82,7 @@ Route::prefix('v1')
Route::post('{uuid}/reset-password', [CustomerController::class, 'resetPassword'])->middleware('perm:customer.edit');
Route::post('{uuid}/add-credit', [CustomerController::class, 'addCredit'])->middleware('perm:customer.edit');
Route::get('{uuid}/services', [CustomerController::class, 'getServices'])->middleware('perm:customer.view');
Route::get('{uuid}/orders', [CustomerController::class, 'getOrders'])->middleware('perm:customer.view');
Route::get('{uuid}/invoices', [CustomerController::class, 'getInvoices'])->middleware('perm:customer.view');
Route::get('{uuid}/transactions', [CustomerController::class, 'getTransactions'])->middleware('perm:customer.view');
Route::get('{uuid}/domains', [CustomerController::class, 'getDomains'])->middleware('perm:customer.view');