fosrl.pangolin/server/routers/badger/badger.ts
2024-09-28 23:51:52 -04:00

14 lines
355 B
TypeScript

import { Router } from "express";
import { getConfig } from "./getConfig";
import { receiveBandwidth } from "./receiveBandwidth";
const badger = Router();
badger.get("/", (_, res) => {
res.status(200).json({ message: "Healthy" });
});
badger.get("/getConfig", getConfig);
badger.post("/receiveBandwidth", receiveBandwidth);
export default badger;