use hyphens

This commit is contained in:
Milo Schwartz 2024-09-29 23:06:39 -04:00
parent db76769fb7
commit a33a8d7367
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -27,7 +27,9 @@ const environment = {
ENVIRONMENT: (process.env.ENVIRONMENT as string) || "dev", ENVIRONMENT: (process.env.ENVIRONMENT as string) || "dev",
LOG_LEVEL: (process.env.LOG_LEVEL as string) || "debug", LOG_LEVEL: (process.env.LOG_LEVEL as string) || "debug",
SAVE_LOGS: (process.env.SAVE_LOGS as string) || "false", SAVE_LOGS: (process.env.SAVE_LOGS as string) || "false",
CONFIG_PATH: (process.env.CONFIG_PATH as string) || path.join("config"), CONFIG_PATH:
(process.env.CONFIG_PATH && path.join(process.env.CONFIG_PATH)) ||
path.join("config"),
EXTERNAL_PORT: (process.env.EXTERNAL_PORT as string) || "3000", EXTERNAL_PORT: (process.env.EXTERNAL_PORT as string) || "3000",
INTERNAL_PORT: (process.env.INTERNAL_PORT as string) || "3001", INTERNAL_PORT: (process.env.INTERNAL_PORT as string) || "3001",
}; };

View file

@ -8,7 +8,7 @@ gerbil.get("/", (_, res) => {
res.status(200).json({ message: "Healthy" }); res.status(200).json({ message: "Healthy" });
}); });
gerbil.get("/getConfig", getConfig); gerbil.get("/get-config", getConfig);
gerbil.post("/receiveBandwidth", receiveBandwidth); gerbil.post("/receive-bandwidth", receiveBandwidth);
export default gerbil; export default gerbil;