Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
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
GéoContrib
Géocontrib Frontend
Merge requests
!233
You need to sign in or sign up before continuing.
REDMINE_ISSUE-12378
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
REDMINE_ISSUE-12378
redmine-issues/12378
into
develop
Overview
0
Commits
22
Pipelines
0
Changes
2
Merged
Timothee P
requested to merge
redmine-issues/12378
into
develop
3 years ago
Overview
0
Commits
22
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Viewing commit
fc14b3c2
Prev
Next
Show latest version
2 files
+
37
−
25
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
fc14b3c2
add user to idgo catalog request & handle error
· fc14b3c2
Timothee P
authored
3 years ago
src/services/misc-api.js
+
16
−
12
Options
@@ -6,18 +6,22 @@ const baseUrl = store.state.configuration.VUE_APP_DJANGO_API_BASE;
const
miscAPI
=
{
async
getIdgoCatalog
()
{
const
response
=
await
axios
.
get
(
`
${
baseUrl
}
idgo-catalog/`
);
if
(
response
.
status
===
200
&&
response
.
data
)
{
return
response
.
data
;
}
else
{
return
null
;
}
async
getIdgoCatalog
(
username
)
{
try
{
const
response
=
await
axios
.
get
(
`
${
baseUrl
}
idgo-catalog/?user=
${
username
}
`
);
if
(
response
.
status
===
200
&&
response
.
data
)
{
return
response
.
data
;
}
else
{
return
null
;
}
}
catch
(
err
)
{
return
err
;
}
},
async
getExternalGeojson
(
queryParams
)
{
Loading