This commit is contained in:
pbao9
2026-05-12 13:50:53 +07:00
parent 96778e7bed
commit 2d4f0fd4b2
6 changed files with 150 additions and 84 deletions
+4 -4
View File
@@ -38,15 +38,15 @@ class RouteServiceProvider extends ServiceProvider
$this->configureRateLimiting();
$this->routes(function () {
Route::middleware(['api', 'json.response'])
->namespace($this->namespace)
->group(base_path('routes/client.php'));
Route::prefix('api')
->middleware(['api', 'json.response'])
->namespace($this->namespace)
->group(base_path('routes/api.php'));
Route::middleware(['api', 'json.response'])
->namespace($this->namespace)
->group(base_path('routes/client.php'));
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/admin.php'));