organized routes and routes and added rate limiter

This commit is contained in:
Milo Schwartz 2024-10-02 00:04:40 -04:00
parent f1e77dfe42
commit 1a91dbb89c
No known key found for this signature in database
45 changed files with 241 additions and 181 deletions

View file

@ -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;

View file

@ -0,0 +1,2 @@
export * from "./getConfig";
export * from "./receiveBandwidth";