udpate
This commit is contained in:
@@ -38,11 +38,19 @@ class RouteServiceProvider extends ServiceProvider
|
||||
$this->configureRateLimiting();
|
||||
|
||||
$this->routes(function () {
|
||||
Route::domain('api-agency.tgs.com.vn')
|
||||
->middleware('api')
|
||||
// 1. Agency API (Domain riêng, dùng routes/client.php)
|
||||
Route::domain('api-agency.tgs.com.vn.test')
|
||||
->middleware(['api', 'json.response'])
|
||||
->namespace($this->namespace)
|
||||
->group(base_path('routes/client.php'));
|
||||
|
||||
// 2. System API (Dùng cho portal.test/api/..., dùng routes/api.php)
|
||||
Route::prefix('api')
|
||||
->middleware(['api', 'json.response'])
|
||||
->namespace($this->namespace)
|
||||
->group(base_path('routes/api.php'));
|
||||
|
||||
// 3. Web & Admin routes
|
||||
Route::middleware('web')
|
||||
->namespace($this->namespace)
|
||||
->group(base_path('routes/web.php'));
|
||||
|
||||
Reference in New Issue
Block a user