From 2f2c1871d7c5ccdec3278704eb4dc35298b3ca46 Mon Sep 17 00:00:00 2001 From: Clark Winkelmann Date: Wed, 20 May 2020 01:09:41 +0200 Subject: [PATCH] Add missing route for the flags page --- extensions/flags/extend.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/flags/extend.php b/extensions/flags/extend.php index 259c42cc0..77d4639c0 100644 --- a/extensions/flags/extend.php +++ b/extensions/flags/extend.php @@ -14,6 +14,7 @@ use Flarum\Flags\Api\Controller\DeleteFlagsController; use Flarum\Flags\Api\Controller\ListFlagsController; use Flarum\Flags\Flag; use Flarum\Flags\Listener; +use Flarum\Forum\Content\AssertRegistered; use Flarum\Post\Post; use Flarum\User\User; use Illuminate\Contracts\Events\Dispatcher; @@ -21,7 +22,8 @@ use Illuminate\Contracts\Events\Dispatcher; return [ (new Extend\Frontend('forum')) ->js(__DIR__.'/js/dist/forum.js') - ->css(__DIR__.'/less/forum.less'), + ->css(__DIR__.'/less/forum.less') + ->route('/flags', 'flags', AssertRegistered::class), (new Extend\Frontend('admin')) ->js(__DIR__.'/js/dist/admin.js'),