Explorar o código

update: exchange api

tokumeikoi %!s(int64=4) %!d(string=hai) anos
pai
achega
9c04f75b85
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Utils/Helper.php

+ 1 - 1
app/Utils/Helper.php

@@ -25,7 +25,7 @@ class Helper
 
     public static function exchange($from, $to)
     {
-        $result = file_get_contents('https://api.exchangeratesapi.io/latest?symbols=' . $to . '&base=' . $from);
+        $result = file_get_contents('https://api.exchangerate.host/latest?symbols=' . $to . '&base=' . $from);
         $result = json_decode($result, true);
         return $result['rates'][$to];
     }