Skip to content
Snippets Groups Projects
getRoleObject.ts 280 B
Newer Older
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);