Skip to content
Snippets Groups Projects
Commit 04e671dc authored by Timothee P's avatar Timothee P :sunflower:
Browse files

change project-types endpoint to v2

parent 2a9357f6
No related branches found
No related tags found
1 merge request!548REDMINE_ISSUE-14470|Fusionner l'API projet type avec l'API projet
...@@ -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/projects/?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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment