Update web-admin.php

pull/7432/head
Shlee 1 day ago committed by GitHub
parent 5654ab6c27
commit b06e810375
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -11,19 +11,6 @@ use Laravel\Pulse\Pulse;
// Laravel Pulse + Horizon dashboards, kept under `admin/*` so their routes can
// never collide with the `{username}` profile catch-all in routes/web.php
// (a username cannot contain a slash). This file loads before routes/web.php and
// before Horizon's provider routes (see bootstrap/app.php), so these definitions
// win on route-match order.
//
// Pulse: registered explicitly (with Pulse::ignoreRoutes() set in AppServiceProvider
// so the package does not self-register at its default path).
//
// Horizon: the explicit base-path GET below is deliberately identical to Horizon's
// own optional `{view?}` catch-all (same HomeController@index action, same 'horizon'
// middleware group) which would otherwise serve this path. It is not required for
// correctness; it exists only to make admin/horizon visible in Pixelfed's own route
// files. All other Horizon subpaths (admin/horizon/dashboard, /api/*, assets) are
// still served by Horizon itself.
Route::domain(config('pixelfed.domain.app'))->middleware(['localization'])->group(function () {
Route::get(config('pulse.path', 'admin/pulse'), function (Pulse $pulse, Factory $view) {
return $view->make('pulse::dashboard');

Loading…
Cancel
Save