Missing Authentication - Route Handler
- Vulnerable - API code:
app/api/example-1-missing-authentication-route-handler/vulnerable/route.ts
- Solution 1 - API code:
app/api/example-1-missing-authentication-route-handler/solution-1/route.ts
- Solution 2 - API code:
app/api/example-1-missing-authentication-route-handler/solution-2/route.ts
The following blog posts should only be visible for logged-in users.
If a user is not logged in, an error message should appear.
If a user is not logged in, an error message should appear.