mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 10:05:53 +02:00
organized routes and routes and added rate limiter
This commit is contained in:
parent
f1e77dfe42
commit
1a91dbb89c
45 changed files with 241 additions and 181 deletions
|
@ -1,14 +0,0 @@
|
|||
import { Router } from "express";
|
||||
import { getConfig } from "./getConfig";
|
||||
import { receiveBandwidth } from "./receiveBandwidth";
|
||||
|
||||
const gerbil = Router();
|
||||
|
||||
gerbil.get("/", (_, res) => {
|
||||
res.status(200).json({ message: "Healthy" });
|
||||
});
|
||||
|
||||
gerbil.get("/get-config", getConfig);
|
||||
gerbil.post("/receive-bandwidth", receiveBandwidth);
|
||||
|
||||
export default gerbil;
|
2
server/routers/gerbil/index.ts
Normal file
2
server/routers/gerbil/index.ts
Normal file
|
@ -0,0 +1,2 @@
|
|||
export * from "./getConfig";
|
||||
export * from "./receiveBandwidth";
|
Loading…
Add table
Add a link
Reference in a new issue