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

Call to get role object.

parent 69722ac0
No related branches found
No related tags found
2 merge requests!69Possibility to insert a reservation and new docs.,!62Set up axios middleware.
Pipeline #13013 passed
import axios from 'axios';
import { decamelizeKeys } from 'humps';
import api from 'api/api';
import { RoleObjectType } from './RoleObjectType';
export const getRoleID = async (): Promise<RoleObjectType> =>
axios('/api/web/login/get_role').then((res) => res.data.role_object);
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