加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
extend.php 810 Bytes
一键复制 编辑 原始数据 按行查看 历史
苑聪 提交于 2021-06-21 23:40 . 提交 flarum v1.0 版本
<?php
/*
* This file is part of hehongyuanlove/flarum-auth-qq.
*
* Copyright (c) 2020 YC.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace Hehongyuanlove\AuthQQ;
use Flarum\Extend;
return [
(new Extend\Frontend('forum'))
->js(__DIR__ . '/js/dist/forum.js')
->css(__DIR__ . '/resources/less/forum.less'),
(new Extend\Frontend('admin'))
->js(__DIR__ . '/js/dist/admin.js')
->css(__DIR__ . '/resources/less/admin.less'),
// new DefaultSettings(),
(new Extend\Routes('api'))
->get('/auth/qq', 'auth.qq', QQAuthController::class),
(new Extend\Routes('api'))
->get('/authh5/qq', 'authh5.qq', QQAuthH5Controller::class),
new Extend\Locales(__DIR__ . '/resources/locale')
];
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化