restructure and expressjs endpoints

This commit is contained in:
Fran Jurmanović
2023-10-02 21:33:22 +02:00
parent 9a9a4f2ced
commit c07e743480
26 changed files with 232 additions and 181 deletions

11
src/constants/config.ts Normal file
View File

@@ -0,0 +1,11 @@
import { config as dotenv } from "dotenv";
dotenv();
const config: NodeJS.ProcessEnv = {
TOKEN: process.env.TOKEN,
PASSWORD: process.env.PASSWORD,
PORT: process.env.PORT || "3000",
CRON_LEGICA: process.env.CRON_LEGICA || "0 9 * * *",
};
export { config };