Skip to content

Commit

Permalink
fix route issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Bak committed Jul 31, 2024
1 parent 911e79e commit 0fc3222
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Illuminate\Support\Facades\Route;

return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__ . '/../routes/web.php',
commands: __DIR__ . '/../routes/console.php',
health: '/up',

then: function() {
Route::middleware('web')
->group(base_path('routes/admin.php'));
}
)
->withMiddleware(function (Middleware $middleware) {
$middleware->alias([
Expand Down
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@
Route::post('subscriptions', [\App\Http\Controllers\Subscriptions\SubscriptionController::class, 'store'])->name('subscriptions.store');
});

include __DIR__ . '/admin.php';
//include __DIR__ . '/admin.php';

0 comments on commit 0fc3222

Please sign in to comment.