pluviouse commited on
Commit
f32db6c
·
verified ·
1 Parent(s): c1e8faf

Create app.ts

Browse files
Files changed (1) hide show
  1. app.ts +8 -0
app.ts ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import { Elysia } from "elysia";
2
+
3
+ const app = new Elysia()
4
+ .get("/", () => "Hello, Elysia!")
5
+ .get("/items/:id", ({ params }) => `Item ID: ${params.id}`)
6
+ .listen(process.env.PORT);
7
+
8
+ console.log(`🦊 Elysia is running at http://localhost:3000`);