mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-27 15:26:41 +00:00
organized routes and routes and added rate limiter
This commit is contained in:
@@ -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";
|
||||
Reference in New Issue
Block a user