+ adding hono and @hono/node-server
+ reemplazar index por server.ts + implement a basic server.ts in server.ts
This commit is contained in:
9
src/server.ts
Normal file
9
src/server.ts
Normal file
@ -0,0 +1,9 @@
|
||||
// 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 });
|
Reference in New Issue
Block a user