mirror of
https://github.com/flarum/framework.git
synced 2025-01-30 03:44:58 +08:00
Merge pull request #23 from flarum/cw/missing-route
Add missing route for the flags page
This commit is contained in:
commit
845c469d35
|
@ -14,6 +14,7 @@ use Flarum\Flags\Api\Controller\DeleteFlagsController;
|
||||||
use Flarum\Flags\Api\Controller\ListFlagsController;
|
use Flarum\Flags\Api\Controller\ListFlagsController;
|
||||||
use Flarum\Flags\Flag;
|
use Flarum\Flags\Flag;
|
||||||
use Flarum\Flags\Listener;
|
use Flarum\Flags\Listener;
|
||||||
|
use Flarum\Forum\Content\AssertRegistered;
|
||||||
use Flarum\Post\Post;
|
use Flarum\Post\Post;
|
||||||
use Flarum\User\User;
|
use Flarum\User\User;
|
||||||
use Illuminate\Contracts\Events\Dispatcher;
|
use Illuminate\Contracts\Events\Dispatcher;
|
||||||
|
@ -21,7 +22,8 @@ use Illuminate\Contracts\Events\Dispatcher;
|
||||||
return [
|
return [
|
||||||
(new Extend\Frontend('forum'))
|
(new Extend\Frontend('forum'))
|
||||||
->js(__DIR__.'/js/dist/forum.js')
|
->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'))
|
(new Extend\Frontend('admin'))
|
||||||
->js(__DIR__.'/js/dist/admin.js'),
|
->js(__DIR__.'/js/dist/admin.js'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user