feat: implement VM snapshot management, enhance client resource loading, and refactor deployment workflow for production

This commit is contained in:
pbao9
2026-05-11 11:09:55 +07:00
parent 8aef607e1f
commit 96778e7bed
51 changed files with 2536 additions and 1249 deletions
+4 -12
View File
@@ -38,28 +38,20 @@ class RouteServiceProvider extends ServiceProvider
$this->configureRateLimiting();
$this->routes(function () {
// 1. Agency API — domain riêng → chỉ client.php
Route::domain(config('app.api_agency_url'))
->middleware(['api', 'json.response'])
Route::middleware(['api', 'json.response'])
->namespace($this->namespace)
->group(base_path('routes/client.php'));
// 2. System API — bind về APP_URL
Route::domain(config('app.url'))
->prefix('api')
Route::prefix('api')
->middleware(['api', 'json.response'])
->namespace($this->namespace)
->group(base_path('routes/api.php'));
// 3. Admin Backend routes
Route::domain(config('app.url'))
->middleware('web')
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/admin.php'));
// 4. Web routes
Route::domain(config('app.url'))
->middleware('web')
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
});