first commit
This commit is contained in:
22
src/service/ProjectService.js
Normal file
22
src/service/ProjectService.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import axios from 'axios';
|
||||
export const ProjectService = {
|
||||
|
||||
getUserProjects() {
|
||||
return axios.get('/userProjects')
|
||||
|
||||
}
|
||||
,
|
||||
getUserApplications() {
|
||||
return axios.get('/userApplications')
|
||||
|
||||
}
|
||||
,
|
||||
updateSelectedProject(data) {
|
||||
return axios.post('/updateSelectedProject', data)
|
||||
|
||||
}
|
||||
|
||||
/* {
|
||||
projectName: selectedProjectName
|
||||
}*/
|
||||
}
|
||||
@@ -4,5 +4,14 @@ export const ScenarioService = {
|
||||
getScenarios() {
|
||||
return axios.get('/scenarios')
|
||||
|
||||
}
|
||||
},
|
||||
getScenariosProject(projectId) {
|
||||
return axios.post('/scenariosProject' , projectId)
|
||||
|
||||
},
|
||||
getScenariosApplication(app) {
|
||||
return axios.post('/scenariosByApp' , app)
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user