de-fops
This commit is contained in:
parent
e8ad39203f
commit
3b273d0ee9
8 changed files with 14 additions and 34 deletions
|
@ -18,8 +18,7 @@ public function __construct() {}
|
|||
|
||||
public function getWah(): string {
|
||||
try {
|
||||
// $response = Http::get('https://api.tinyfox.dev/img.json?animal=wah');
|
||||
$response = Http::get('https://api.tinyfox.dev/img.json?animal=fox');
|
||||
$response = Http::get('https://api.tinyfox.dev/img.json?animal=wah');
|
||||
$data = $response->json();
|
||||
if ($data == null) return "";
|
||||
return "https://api.tinyfox.dev" . $data["loc"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue