diff --git a/backend/src/routes/users.js b/backend/src/routes/users.js index 6b62646..109a300 100644 --- a/backend/src/routes/users.js +++ b/backend/src/routes/users.js @@ -82,7 +82,7 @@ router.patch('/me', authenticate, updateProfileValidation, updateProfile); router.patch('/me/password', authenticate, changePasswordValidation, changePassword); // GET /api/users/:username - Get public user profile by username -router.get('/:username', authenticate, async (req, res, next) => { +router.get('/:username', async (req, res, next) => { try { const { username } = req.params; @@ -149,7 +149,7 @@ router.get('/:username', authenticate, async (req, res, next) => { }); // GET /api/users/:username/ratings - Get ratings for a user -router.get('/:username/ratings', authenticate, async (req, res, next) => { +router.get('/:username/ratings', async (req, res, next) => { try { const { username } = req.params; diff --git a/frontend/src/pages/NotFoundPage.jsx b/frontend/src/pages/NotFoundPage.jsx index d6564e9..d62ade3 100644 --- a/frontend/src/pages/NotFoundPage.jsx +++ b/frontend/src/pages/NotFoundPage.jsx @@ -45,14 +45,16 @@ export default function NotFoundPage() {
- {/* Current Path */} -Requested URL:
-
- {location.pathname}
- {location.search}
-
- Requested URL:
+
+ {location.pathname}
+ {location.search}
+
+ {error}
- - Back to Events - -