mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 06:08:15 +02:00
14 lines
355 B
TypeScript
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;
|