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
bbb8808e
Commit
bbb8808e
authored
7 months ago
by
Florent Lavelle
Browse files
Options
Downloads
Patches
Plain Diff
fix: api path for organisation thumbnail
parent
d2ae689b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#30609
passed
7 months ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/api/organisationsAPI.js
+7
-1
7 additions, 1 deletion
src/api/organisationsAPI.js
with
7 additions
and
1 deletion
src/api/organisationsAPI.js
+
7
−
1
View file @
bbb8808e
...
...
@@ -20,6 +20,7 @@ const path = require('path');
const
DOMAIN
=
process
.
env
.
VUE_APP_DOMAIN
;
const
ORGANISATION_API_PATH
=
process
.
env
.
VUE_APP_ORGANISATION_API_PATH
;
const
USERGROUP_API_PATH
=
process
.
env
.
VUE_APP_USERGROUP_API_PATH
;
const
LOGIN_API_PATH
=
process
.
env
.
VUE_APP_LOGIN_API_PATH
;
const
organisationsAPI
=
{
...
...
@@ -52,7 +53,12 @@ const organisationsAPI = {
},
async
setOrganisationThumbnail
(
id
,
data
)
{
const
url
=
new
URL
(
path
.
join
(
`
${
i18n
.
locale
}${
ORGANISATION_API_PATH
}
`
,
`organisations/
${
id
}
/thumbnail/`
),
DOMAIN
);
const
url
=
new
URL
(
path
.
join
(
`
${
i18n
.
locale
}${
LOGIN_API_PATH
}
`
,
`organisations/
${
id
}
/thumbnail/`
),
DOMAIN
);
const
response
=
await
axios
.
put
(
url
,
data
,
{
...
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