MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / action

Function action

pages/api/taxas/v1/index.js:4–10  ·  view source on GitHub ↗
(_request, response)

Source from the content-addressed store, hash-verified

2import * as selic from 'selic';
3
4const action = async (_request, response) => {
5 const taxas = await selic.getRatesList();
6
7 return response
8 .status(200)
9 .json(taxas.map(({ name, apy }) => ({ nome: name, valor: apy })));
10};
11
12export default app().get(action);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected