Skip to content

Commit

Permalink
Linked done page
Browse files Browse the repository at this point in the history
  • Loading branch information
iampavangandhi committed Aug 11, 2020
1 parent 3ba7b76 commit beb879a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ app.use("/portfolio", require("./routes/api/portfolio"));
app.use("/market", require("./routes/api/market"));
app.use("/view", require("./routes/api/view"));
app.use("/cart", require("./routes/api/cart"));
app.use("/done", require("./routes/api/done"));
app.use("/addBalance", require("./routes/api/addBalance"));
app.use("/transaction", require("./routes/api/transaction"));

Expand Down
14 changes: 14 additions & 0 deletions routes/api/done.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Done Route

const express = require("express");
const router = express.Router();
const { ensureAuth, ensureGuest } = require("../../middleware/auth");

// @desc Done page
// @route GET /done
// @access Private
router.get("/", ensureGuest, (req, res) => {
res.status(200).render("done");
});

module.exports = router;

0 comments on commit beb879a

Please sign in to comment.