buster/apps/server/src/api/v2/currency/index.ts

13 lines
362 B
TypeScript

import type { Currency, CurrencyResponse } from '@buster/server-shared/currency';
import { Hono } from 'hono';
import { requireAuth } from '../../../middleware/auth';
import { CURRENCIES_MAP } from './config';
const app = new Hono();
app.use('*', requireAuth).get('/', async (c) => {
return c.json<CurrencyResponse>(CURRENCIES_MAP);
});
export default app;