diff --git a/src/app.ts b/src/app.ts index 07967a5..16df5ae 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,6 +1,6 @@ import express from "express"; -import { RegisterRoutes } from "./generated/routes.js"; -import openapi from "./openapi.js"; +import { RegisterRoutes } from "./generated/routes"; +import openapi from "./openapi"; import { pinoHttp } from "pino-http"; const app = express(); diff --git a/src/index.ts b/src/index.ts index 253c4c3..72c9df4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,7 @@ -import app from "./app.js"; +import { config } from "dotenv"; +import app from "./app"; + +config(); const port = 8081;