mirror of https://github.com/buster-so/buster.git
13 lines
362 B
TypeScript
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;
|