update: admin

This commit is contained in:
tokumeikoi 2022-02-20 01:41:52 +08:00
parent c270f3ab5a
commit dcb45ab6ed
4 changed files with 11 additions and 2 deletions

View File

@ -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()
]);
}
}

View File

@ -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');
});
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long