cnstll/ft_transcendAnce

[US] As a dev I want to restrict routes in the app

Closed this issue · 1 comments

User Story

As a dev,
I want to have public | private routing at app level,
so that routes of my app are protected from non logged users.

Expected Behavior / Acceptance criteria

When a user tries to reach a private route without being logged she should be redirected to the sign-in page
When a logged user tries to reach the /sign-in page she should be redirected to her profile page

Private routes are all pages but the sign-in page

Additional information

No response

Won't be implemented