feat: init
This commit is contained in:
5
server/api/v1/rates/index.get.ts
Normal file
5
server/api/v1/rates/index.get.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export default defineEventHandler(async (event) => {
|
||||
const rates = await getAllRates()
|
||||
setHeader(event, 'Cache-Control', 'public, max-age=3600')
|
||||
return rates
|
||||
})
|
||||
Reference in New Issue
Block a user