Skip to content

Commit

Permalink
flexibility to developers
Browse files Browse the repository at this point in the history
  • Loading branch information
romeq committed Jul 1, 2023
1 parent c0a8ed5 commit f61f3a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import cors from "cors"

require("dotenv").config()

const swaggerDocument: object = JSON.parse(readFileSync("openapi.json", "utf8"))
const swaggerDocument: object = JSON.parse(readFileSync(config.openapiFile, "utf8"))

const logger = new Logger(true, true)

Expand Down
1 change: 1 addition & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default {
skipRatelimiters: process.env.SKIPRATELIMITERS == "true",
corsEnabled: process.env.ENABLE_CORS == "true",
corsAllowed: (process.env.ALLOWED_CORS_ORIGINS || "").split(","),
openapiFile: process.env.PASTEBIN_OPENAPI_SPEC_FILE || "openapi.json",

mailerEnabled: process.env.MAIL_ENABLED === "true",
getMailer: getMailer,
Expand Down

0 comments on commit f61f3a8

Please sign in to comment.