mirror of
https://github.com/ershisan99/rate-limited-server.git
synced 2025-12-16 12:33:52 +00:00
add get /
This commit is contained in:
@@ -9,7 +9,7 @@ const app = new Elysia()
|
||||
.use(rateLimit({
|
||||
max: 2
|
||||
}))
|
||||
|
||||
.get("/", () => "Hello Elysia")
|
||||
.post("/", async ({body}) => {
|
||||
const response = await fetch(url, {
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user