Skip to content

Commit

Permalink
Merge pull request #136 from Resilient-Labs/BErouteforposts
Browse files Browse the repository at this point in the history
Add routes for team member profiles and changed controller file name
  • Loading branch information
briannawillis195 authored Jan 2, 2024
2 parents d48b917 + f9376f6 commit 51cd90a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
File renamed without changes.
7 changes: 7 additions & 0 deletions server/routes/team.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import express from "express"
const router = express.Router()
import { getTeamMembers } from "../controllers/team.js"

router.get("/team", getTeamMembers);

export { router }
2 changes: 2 additions & 0 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { router as fridgeRoutes } from "./routes/fridge.js"
import { router as postRoutes } from "./routes/posts.js"
import { router as profileRoutes } from "./routes/profile.js"
import { router as mainRoutes } from "./routes/main.js"
import { router as teamRoutes } from "./routes/team.js"

import dotenv from "dotenv"
import path from "path"
Expand Down Expand Up @@ -81,6 +82,7 @@ app.use("/", mainRoutes)
app.use("/fridge", fridgeRoutes)
app.use("/post", postRoutes)
app.use("/profile", profileRoutes)
app.use("/team", teamRoutes)


// Serve React App
Expand Down

0 comments on commit 51cd90a

Please sign in to comment.