monorepo/apps/api/src/run.ts

15 lines
288 B
TypeScript
Raw Normal View History

2025-02-09 10:39:10 +08:00
import { serve } from '@hono/node-server';
import { app } from './server/main';
serve(
{
fetch: app.fetch,
port: 3000,
hostname: 'localhost',
},
async () => {
console.log('Server started on http://localhost:4000/api/doc');
},
).listen();