1
2
3
4
5
6
7
8
9
10
11
import { currency } from "https://esm.town/v/stevekrouse/currency?v=23";
export async function TanaCurrency(req, res) {
let amount = parseFloat(`${req.query.amount}`);
const usdGBP = await currency(
`${req.query.source}`,
`${req.query.target}`,
amount
);
res.send(usdGBP);
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023