feat: implement VM snapshot management, enhance client resource loading, and refactor deployment workflow for production
This commit is contained in:
@@ -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'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user