mirror of
https://github.com/ershisan99/rate-limited-server.git
synced 2025-12-16 20:59:29 +00:00
add get /
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user