Add protected routes
Routes that need authentication or an administrator should not be reacheable whithout it.
Some articles that show how to do it:
- https://gist.github.com/Metnew/fdb3cbd53cac3512651ae0b2ba8279cf
- https://tylermcginnis.com/react-router-protected-routes-authentication/
- https://reacttraining.com/react-router/web/example/auth-workflow
Trying to access a route that needs authentication should redirect to the login page.
Trying to access a route that needs administration rights should redirect to the login page or just show an error?
Edited by Alexandre Soler Sanandres