add get /

This commit is contained in:
2024-08-20 19:18:50 +02:00
parent 5551086ed4
commit dc5bc50c17

View File

@@ -9,7 +9,7 @@ const app = new Elysia()
.use(rateLimit({ .use(rateLimit({
max: 2 max: 2
})) }))
.get("/", () => "Hello Elysia")
.post("/", async ({body}) => { .post("/", async ({body}) => {
const response = await fetch(url, { const response = await fetch(url, {
method: "POST", method: "POST",