From 819a0ecb43b09c826f56f461ca0f7e22897f747a Mon Sep 17 00:00:00 2001 From: Owen Schwartz Date: Sun, 29 Sep 2024 10:55:59 -0400 Subject: [PATCH] Rename gerbil -> badger --- server/routers/badger/badger.ts | 5 ----- server/routers/external.ts | 4 ++-- server/routers/gerbil/gerbil.ts | 5 +++++ server/routers/{badger => gerbil}/getConfig.ts | 0 server/routers/{badger => gerbil}/receiveBandwidth.ts | 0 server/routers/internal.ts | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) rename server/routers/{badger => gerbil}/getConfig.ts (100%) rename server/routers/{badger => gerbil}/receiveBandwidth.ts (100%) diff --git a/server/routers/badger/badger.ts b/server/routers/badger/badger.ts index 4224291b..33666ae7 100644 --- a/server/routers/badger/badger.ts +++ b/server/routers/badger/badger.ts @@ -1,6 +1,4 @@ import { Router } from "express"; -import { getConfig } from "./getConfig"; -import { receiveBandwidth } from "./receiveBandwidth"; const badger = Router(); @@ -8,7 +6,4 @@ badger.get("/", (_, res) => { res.status(200).json({ message: "Healthy" }); }); -badger.get("/getConfig", getConfig); -badger.post("/receiveBandwidth", receiveBandwidth); - export default badger; diff --git a/server/routers/external.ts b/server/routers/external.ts index 66e65d35..3c055452 100644 --- a/server/routers/external.ts +++ b/server/routers/external.ts @@ -1,5 +1,5 @@ import { Router } from "express"; -import badger from "./badger/badger"; +import gerbil from "./gerbil/gerbil"; import pangolin from "./pangolin/pangolin"; const unauth = Router(); @@ -8,7 +8,7 @@ unauth.get("/", (_, res) => { res.status(200).json({ message: "Healthy" }); }); -unauth.use("/newt", badger); +unauth.use("/newt", gerbil); unauth.use("/pangolin", pangolin); export default unauth; diff --git a/server/routers/gerbil/gerbil.ts b/server/routers/gerbil/gerbil.ts index 796a2d04..56941d73 100644 --- a/server/routers/gerbil/gerbil.ts +++ b/server/routers/gerbil/gerbil.ts @@ -1,4 +1,6 @@ import { Router } from "express"; +import { getConfig } from "./getConfig"; +import { receiveBandwidth } from "./receiveBandwidth"; const gerbil = Router(); @@ -6,4 +8,7 @@ gerbil.get("/", (_, res) => { res.status(200).json({ message: "Healthy" }); }); +gerbil.get("/getConfig", getConfig); +gerbil.post("/receiveBandwidth", receiveBandwidth); + export default gerbil; diff --git a/server/routers/badger/getConfig.ts b/server/routers/gerbil/getConfig.ts similarity index 100% rename from server/routers/badger/getConfig.ts rename to server/routers/gerbil/getConfig.ts diff --git a/server/routers/badger/receiveBandwidth.ts b/server/routers/gerbil/receiveBandwidth.ts similarity index 100% rename from server/routers/badger/receiveBandwidth.ts rename to server/routers/gerbil/receiveBandwidth.ts diff --git a/server/routers/internal.ts b/server/routers/internal.ts index 06e38eb1..e0ba0cff 100644 --- a/server/routers/internal.ts +++ b/server/routers/internal.ts @@ -1,6 +1,6 @@ import { Router } from "express"; -import badger from "./badger/badger"; import gerbil from "./gerbil/gerbil"; +import gerbil from "./badger/badger"; import { traefikConfigProvider } from "@server/traefik-config-provider"; const unauth = Router(); @@ -9,7 +9,7 @@ unauth.get("/", (_, res) => { res.status(200).json({ message: "Healthy" }); }); -unauth.use("/badger", badger); +unauth.use("/badger", gerbil); unauth.use("/gerbil", gerbil); unauth.get("/traefik-config-provider", traefikConfigProvider);