2017-12-10 18:41:13 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of Flarum.
|
|
|
|
*
|
2022-03-12 07:11:20 +08:00
|
|
|
* For detailed copyright and license information, please view the
|
|
|
|
* LICENSE file that was distributed with this source code.
|
2017-12-10 18:41:13 +08:00
|
|
|
*/
|
|
|
|
|
2018-06-20 12:05:48 +08:00
|
|
|
use Flarum\Extend;
|
2017-12-10 18:41:13 +08:00
|
|
|
|
2018-06-20 12:05:48 +08:00
|
|
|
return [
|
2018-07-27 17:38:42 +08:00
|
|
|
(new Extend\Frontend('admin'))
|
2018-06-20 12:05:48 +08:00
|
|
|
->js(__DIR__.'/js/dist/admin.js')
|
2022-07-19 02:07:38 +08:00
|
|
|
->css(__DIR__.'/less/admin.less'),
|
2020-06-20 09:43:34 +08:00
|
|
|
|
2020-06-20 09:43:47 +08:00
|
|
|
new Extend\Locales(__DIR__.'/locale'),
|
2022-07-19 02:07:38 +08:00
|
|
|
(new Extend\Routes('api'))
|
|
|
|
->get('/statistics', 'flarum-statistics.get-statistics', Flarum\Statistics\Api\Controller\ShowStatisticsData::class),
|
2018-06-20 12:05:48 +08:00
|
|
|
];
|