diff --git a/Website/Backend/index.ts b/Website/Backend/index.ts index 1f58fdb..3431e33 100644 --- a/Website/Backend/index.ts +++ b/Website/Backend/index.ts @@ -3,8 +3,8 @@ import cors from "cors"; import { config } from "dotenv"; import { connectToDB } from "./config/db"; // Routes import -import certificatesRoute from "./routes/certificate.ts"; -import authRoute from "./routes/auth.ts"; +import certificatesRoute from "./routes/certificate"; +import authRoute from "./routes/auth"; // Load the env config(); diff --git a/Website/Backend/tsconfig.json b/Website/Backend/tsconfig.json index 7f58923..ae59877 100644 --- a/Website/Backend/tsconfig.json +++ b/Website/Backend/tsconfig.json @@ -35,7 +35,7 @@ // "types": [], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ - "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ + "allowImportingTsExtensions": false, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ @@ -57,7 +57,7 @@ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ "outDir": "./build", /* Specify an output folder for all emitted files. */ // "removeComments": true, /* Disable emitting comments. */ - "noEmit": true, /* Disable emitting files from a compilation. */ + "noEmit": false, /* Disable emitting files from a compilation. */ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */