Files
baodev0andClaude Opus 5.5 30898ea46f feat: email gửi tay/nhắc gia hạn, gói hosting, sửa dữ liệu sản phẩm
- Gửi email theo template cho 1 khách, tab lịch sử email, nhắc gia hạn dịch vụ hàng loạt
- Mail lưu from/bcc/sent_by; mẫu MARKETING và mẫu cũ trong TemplateSeeder
- Gói hosting: giới hạn, trạng thái, lấy plan Plesk qua CLI gateway
- Backfill payment_method và ngày đơn hàng còn thiếu
- Bổ sung field CPU/RAM/Disk/Băng thông cho loại sản phẩm vps và cloud

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 11:32:05 +07:00

33 lines
1.7 KiB
PHP

<?php
use App\Http\Controllers\Api\Admin\Hosting\HostingAccountController;
use App\Http\Controllers\Api\Admin\Hosting\ServicePlanController;
use Illuminate\Support\Facades\Route;
// Hosting Manager (module: hosting)
Route::prefix('hosting-accounts')
->controller(HostingAccountController::class)
->group(function () {
Route::get('/', 'index')->middleware('perm:hosting.view');
Route::get('{id}', 'show')->middleware('perm:hosting.view');
Route::post('/', 'store')->middleware('perm:hosting.create');
Route::put('{id}', 'update')->middleware('perm:hosting.edit');
Route::delete('{id}', 'destroy')->middleware('perm:hosting.destroy');
Route::post('{id}/suspend', 'suspend')->middleware('perm:hosting.edit');
Route::post('{id}/unsuspend', 'unsuspend')->middleware('perm:hosting.edit');
Route::post('{id}/reset-ftp-password', 'resetFtpPassword')->middleware('perm:hosting.edit');
});
// Service Plans — hosting package configs (module: hosting)
Route::prefix('service-plans')
->controller(ServicePlanController::class)
->as('service-plans.')
->group(function () {
Route::get('/', 'index')->middleware('perm:hosting.view')->name('index');
Route::post('/', 'store')->middleware('perm:hosting.create')->name('store');
Route::get('plesk-plans/{serverId}', 'pleskPlans')->middleware('perm:hosting.view')->whereNumber('serverId')->name('plesk-plans');
Route::get('{id}', 'show')->middleware('perm:hosting.view')->name('show');
Route::put('{id}', 'update')->middleware('perm:hosting.edit')->name('update');
Route::delete('{id}', 'destroy')->middleware('perm:hosting.destroy')->name('destroy');
});