mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-03 09:34:48 +02:00
14 lines
357 B
TypeScript
14 lines
357 B
TypeScript
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;
|