Skip to content
Snippets Groups Projects
Verified Commit 778d9cc1 authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Setup roles/routes for driver.

parent ba228072
No related branches found
No related tags found
2 merge requests!85Implement the remaining api calls to make possible to link a driver shift with a reservation.,!75Resolve "Driver shift page where driver inserts shift."
......@@ -10,6 +10,7 @@ export enum AuthRoutes {
reservation = '/reservation',
choseRole = '/choseRole',
vehicle = '/vehicle',
driver = '/driver',
}
/**
......
import { withAuthorization } from 'components/Authorization/Authorization';
import { Roles } from 'roles/userRoles';
/**
* Wrapper for pages that can be accessed by drivers.
*/
export const Driver = withAuthorization([Roles.driver]);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment