Skip to content

Commit

Permalink
merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
txingxie committed Dec 3, 2024
1 parent eba9eed commit 00820e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions api/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 api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"mongodb": "^6.9.0",
"mongoose": "^8.4.1",
"path": "^0.12.7",
"sendgrid": "^5.2.3",
"ts-node-dev": "^2.0.0",
"uuid": "^10.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions api/src/routes/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import mongoose from "mongoose";
import dbConnect from "../config/db";
import sgMail from "@sendgrid/mail";
import User from "../model/User";
// import { validateAccessToken } from "../controllers/auth0-middleware";

const router = express.Router();

Expand Down
7 changes: 3 additions & 4 deletions api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ app.use("/workshop", routes.workshop);

connectDB();

app.use("/api", router); // connect routes (prefix as api), what is the lin 7 logic for?: import * as routes from "./routes/index"
app.use("/user", routes.user);
app.use("/api", router);

app.listen(process.env.PORT || 8000, () =>
console.log(`Server running on port ${process.env.PORT || 8000}`),
);
app.listen(process.env.PORT || 8000, () => console.log("Server running..."));

0 comments on commit 00820e0

Please sign in to comment.