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
Commits
04e671dc
Commit
04e671dc
authored
1 year ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
change project-types endpoint to v2
parent
2a9357f6
No related branches found
No related tags found
1 merge request
!548
REDMINE_ISSUE-14470|Fusionner l'API projet type avec l'API projet
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/services/project-api.js
+2
-2
2 additions, 2 deletions
src/services/project-api.js
with
2 additions
and
2 deletions
src/services/project-api.js
+
2
−
2
View file @
04e671dc
...
@@ -74,13 +74,13 @@ const projectAPI = {
...
@@ -74,13 +74,13 @@ const projectAPI = {
async
getProjectTypes
(
baseUrl
)
{
async
getProjectTypes
(
baseUrl
)
{
const
response
=
await
axios
.
get
(
const
response
=
await
axios
.
get
(
`
${
baseUrl
}
project
-types/
`
`
${
baseUrl
}
v2/
project
s/?is_project_type=true
`
);
);
if
(
if
(
response
.
status
===
200
&&
response
.
status
===
200
&&
response
.
data
response
.
data
)
{
)
{
return
response
.
data
;
return
response
.
data
.
results
;
}
else
{
}
else
{
return
null
;
return
null
;
}
}
...
...
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