mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-10 14:04:51 +02:00
use hyphens
This commit is contained in:
parent
db76769fb7
commit
a33a8d7367
2 changed files with 5 additions and 3 deletions
|
@ -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",
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue