Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
Onegeo LogIn
Manage
Activity
Members
Plan
Wiki
Redmine
Code
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
Analyze
Contributor 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
OneGeo Suite
Sites
Onegeo LogIn
Commits
91edb360
Commit
91edb360
authored
3 years ago
by
Florent
Browse files
Options
Downloads
Patches
Plain Diff
use new api service for usergroups
parent
7195f0f3
No related branches found
No related tags found
No related merge requests found
Pipeline
#4680
passed
3 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/api/usergroupsAPI.js
+2
-1
2 additions, 1 deletion
src/api/usergroupsAPI.js
with
2 additions
and
1 deletion
src/api/usergroupsAPI.js
+
2
−
1
View file @
91edb360
...
...
@@ -11,6 +11,7 @@ const AUTH = {
const
path
=
require
(
'
path
'
);
const
DOMAIN
=
process
.
env
.
VUE_APP_DOMAIN
;
const
USERGROUP_API_PATH
=
process
.
env
.
VUE_APP_USERGROUP_API_PATH
;
const
LOGIN_API_PATH
=
process
.
env
.
VUE_APP_LOGIN_API_PATH
;
if
(
!
DEV_AUTH
)
{
axios
.
defaults
.
headers
.
common
[
'
X-CSRFToken
'
]
=
(
name
=>
{
...
...
@@ -23,7 +24,7 @@ if (!DEV_AUTH) {
const
usergroupsAPI
=
{
async
getFilteredUsergroupsList
(
type
=
'
group-of-organisation
'
,
page
=
1
)
{
const
url
=
new
URL
(
path
.
join
(
USERGROUP
_API_PATH
,
`user-groups/?page=
${
page
}
&usergroup_types=
${
type
}
`
),
DOMAIN
);
const
url
=
new
URL
(
path
.
join
(
LOGIN
_API_PATH
,
`user-groups/?page=
${
page
}
&usergroup_types=
${
type
}
`
),
DOMAIN
);
const
response
=
await
axios
.
get
(
url
,
{
...
DEV_AUTH
&&
{
auth
:
AUTH
}
});
if
(
response
.
status
===
200
)
{
return
response
.
data
;
...
...
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