Skip to content

Commit

Permalink
moved places to my/ route
Browse files Browse the repository at this point in the history
  • Loading branch information
singharaj-usai committed Sep 30, 2024
1 parent dc8e106 commit 3e26d73
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions client/html/components/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<!-- User submenu items for mobile -->
<li class="visible-xs"><a href="/"><i class="bi bi-house-door"></i> Home</a></li>
<li class="visible-xs"><a href="/user-profile"><i class="bi bi-person"></i> My Profile</a></li>
<li class="visible-xs"><a href="/places"><i class="bi bi-map"></i> Places</a></li>
<li class="visible-xs"><a href="/my/places"><i class="bi bi-map"></i> Places</a></li>
<li class="visible-xs"><a href="/my/friends"><i class="bi bi-people"></i> Friends</a></li>
<li class="visible-xs"><a href="/my/messages"><i class="bi bi-envelope"></i> Messages</a></li>
</ul>
Expand All @@ -121,7 +121,7 @@
<ul class="nav navbar-nav">
<li><a href="/"><i class="bi bi-house-door"></i> Home</a></li>
<li><a href="/user-profile" id="profile-link"><i class="bi bi-person"></i> Profile</a></li>
<li><a href="/places"><i class="bi bi-map"></i> Places</a></li>
<li><a href="/my/places"><i class="bi bi-map"></i> Places</a></li>
<li><a href="/my/friends"><i class="bi bi-people"></i> Friends</a></li>
<li><a href="/my/messages"><i class="bi bi-envelope"></i> Messages</a></li>
<li><a href="/settings"><i class="bi bi-gear"></i> Settings</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ <h4 class="modal-title" id="editGameModalLabel">Edit Game</h4>
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="./js/theme-loader.js"></script>
<script src="./js/auth/auth.js"></script>
<script src="./js/theme-loader.js"></script>
<script src="./js/places.js"></script>
<script src="/js/theme-loader.js"></script>
<script src="/js/auth/auth.js"></script>
<script src="/js/theme-loader.js"></script>
<script src="/js/places.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions server/functions/api/routes/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ router.get("/forum/new/reply", (req, res) => sendHtmlFile(res, "pages/forum/new/
router.get("/forum/post", (req, res) => sendHtmlFile(res, "pages/forum/post.html"));
router.get("/forum/sections/:section", (req, res) => sendHtmlFile(res, "pages/forum/sections/section.html"));

// Catalog and Places pages
// Catalog page
router.get("/catalog", (req, res) => sendHtmlFile(res, "pages/catalog/catalog.html"));
router.get("/places", (req, res) => sendHtmlFile(res, "pages/places/places.html"));

// User's personal pages
router.get("/my/places", (req, res) => sendHtmlFile(res, "pages/my/places/places.html"));
router.get("/my/friends", (req, res) => sendHtmlFile(res, "pages/my/friends.html"));
router.get("/my/messages", (req, res) => sendHtmlFile(res, "pages/my/messages.html"));
router.get("/messages/compose", (req, res) => sendHtmlFile(res, "pages/my/compose/compose.html"));
Expand Down

0 comments on commit 3e26d73

Please sign in to comment.