Files
dailytrends/src/server.ts
albert fb433cfac1 + adding hono and @hono/node-server
+ reemplazar index por server.ts
+ implement a basic server.ts in server.ts
2025-07-28 19:13:27 +02:00

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 });