Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
red-giant
dashboard
Commits
33d60b15
Verified
Commit
33d60b15
authored
3 years ago
by
Defendi Alberto
Browse files
Options
Downloads
Patches
Plain Diff
Call to get role object.
parent
69722ac0
No related branches found
No related tags found
2 merge requests
!69
Possibility to insert a reservation and new docs.
,
!62
Set up axios middleware.
Pipeline
#13013
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/api/getRoleObject.ts
+7
-0
7 additions, 0 deletions
src/api/getRoleObject.ts
with
7 additions
and
0 deletions
src/api/getRoleObject.ts
0 → 100644
+
7
−
0
View file @
33d60b15
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
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment