10 lines
197 B
TypeScript
10 lines
197 B
TypeScript
// server.ts
|
|
import { Hono } from 'hono';
|
|
import { serve } from '@hono/node-server';
|
|
|
|
const app = new Hono();
|
|
|
|
app.get('/', (c) => c.text('Hello world'));
|
|
|
|
serve({ fetch: app.fetch, port: 3000 });
|