Restrict Access (Authenticated Users Only)

Please follow the instructions below to restrict access to routes

Open: 'Frontend/src/client/routes/index.js' and find a route you wish to restrict access too.

{
    path: '/example',
    ...Auth,
    routes: [
        {
            ...ExampleComponent,
            restricted: true <<-- Add this
        }
    ]
}

Simply add 'restricted: true' to the routes array object.

Last updated