mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: admin
This commit is contained in:
parent
c270f3ab5a
commit
dcb45ab6ed
@ -4,6 +4,7 @@ namespace App\Http\Controllers\Guest;
|
||||
|
||||
use App\Utils\Dict;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
class CommController extends Controller
|
||||
{
|
||||
@ -33,4 +34,11 @@ class CommController extends Controller
|
||||
}
|
||||
return $suffix;
|
||||
}
|
||||
|
||||
public function getHitokoto()
|
||||
{
|
||||
return response([
|
||||
'data' => Http::get('https://v1.hitokoto.cn/')->json()
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ class GuestRoute
|
||||
$router->match(['get', 'post'], '/payment/notify/{method}/{uuid}', 'Guest\\PaymentController@notify');
|
||||
// Comm
|
||||
$router->get ('/comm/config', 'Guest\\CommController@config');
|
||||
$router->get ('/comm/getHitokoto', 'Guest\\CommController@getHitokoto');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
2
public/assets/admin/umi.css
vendored
2
public/assets/admin/umi.css
vendored
File diff suppressed because one or more lines are too long
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user