(_request, response)
| 2 | import * as selic from 'selic'; |
| 3 | |
| 4 | const 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 | |
| 12 | export default app().get(action); |
nothing calls this directly
no outgoing calls
no test coverage detected