refactor: Cache mail configuration, update route domains to use config() helper, and upgrade developer dependencies.
This commit is contained in:
@@ -39,26 +39,26 @@ class RouteServiceProvider extends ServiceProvider
|
||||
|
||||
$this->routes(function () {
|
||||
// 1. Agency API — domain riêng → chỉ client.php
|
||||
Route::domain(env('API_AGENCY_URL'))
|
||||
Route::domain(config('app.api_agency_url'))
|
||||
->middleware(['api', 'json.response'])
|
||||
->namespace($this->namespace)
|
||||
->group(base_path('routes/client.php'));
|
||||
|
||||
// 2. System API — bind về APP_URL
|
||||
Route::domain(env('APP_URL'))
|
||||
Route::domain(config('app.url'))
|
||||
->prefix('api')
|
||||
->middleware(['api', 'json.response'])
|
||||
->namespace($this->namespace)
|
||||
->group(base_path('routes/api.php'));
|
||||
|
||||
// 3. Admin Backend routes
|
||||
Route::domain(env('APP_URL'))
|
||||
Route::domain(config('app.url'))
|
||||
->middleware('web')
|
||||
->namespace($this->namespace)
|
||||
->group(base_path('routes/admin.php'));
|
||||
|
||||
// 4. Web routes
|
||||
Route::domain(env('APP_URL'))
|
||||
Route::domain(config('app.url'))
|
||||
->middleware('web')
|
||||
->namespace($this->namespace)
|
||||
->group(base_path('routes/web.php'));
|
||||
|
||||
Reference in New Issue
Block a user