feature/app now receives exchange rates from API
This commit is contained in:
1 parent
f3a1a2191a
commit
a173b8c70c
6 files changed
+167
-8
No files matched your search
@@ -0,0 +1,7 @@
|
||||
function convert(from) {
|
||||
fetch(`https://api.frankfurter.dev/v1/latest?base=${from}`)
|
||||
.then((resp) => resp.json())
|
||||
.then((data) => {
|
||||
console.log(data);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user