Skip to content

Commit

Permalink
define path for mail service
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa-lopes-pt committed Jul 31, 2024
1 parent e71da1f commit d873432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions backend/src/routes/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,15 @@ router.use(authRouter);
router.use("/shop", shopRouter);
router.use("/profile", accountRouter);
router.use("/orders", ordersRouter);
// router.use(mailRouter);
router.use("/mail", mailRouter);
//resource access
router.get(
"/resources/profile-images/:resource",
authMiddleware,
imageOwnerAuthMiddleware,
mediaController
);
router.get(
"/resources/product-images/:resource",
mediaController
);

router.get("/resources/product-images/:resource", mediaController);

//STAGE 0 ONLY
router.get("/dev/markAllOrdersAsShipped", markOrdersAsDeliveredController);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/apis/server.endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace RestAPI {
}
//============== other
export async function emailSupport(data: any) {
return await jsonRequest("/email-support", "POST", data);
return await jsonRequest("/mail/email-support", "POST", data);
}
export async function markAllOrdersAsShipped() {
return await jsonRequest("/dev/markAllOrdersAsShipped");
Expand Down

0 comments on commit d873432

Please sign in to comment.