Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
223 changes: 201 additions & 22 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"mongoose": "^8.9.5",
"multer": "^1.4.5-lts.1",
"nodemailer": "^6.10.1",
"socket.io": "^4.8.3",
"uuid": "^11.0.5"
},
"name": "backend",
Expand Down
2 changes: 2 additions & 0 deletions backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { isHttpError } from "http-errors";
import productRoutes from "src/routes/product";
import userRoutes from "src/routes/user";
import interestEmailRoute from "src/routes/interestEmail";
import messageRoutes from "src/routes/message";
const app = express();

// initializes Express to accept JSON in the request/response body
Expand All @@ -28,6 +29,7 @@ app.use(
app.use("/api/products", productRoutes);
app.use("/api/users", userRoutes);
app.use("/api/interestEmail", interestEmailRoute);
app.use("/api/message", messageRoutes);
/**
* Error handler; all errors thrown by server are handled here.
* Explicit typings required here because TypeScript cannot infer the argument types.
Expand Down
Loading