You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
597 B

import ApiService from '@/services/api.service'
class ProjectService {
constructor() {
this.request = ApiService
}
getProjectList() {
return this.request.get('/projects')
}
createProject(data) {
return this.request.post('/projects', data)
}
updateProject(projectId, payload) {
return this.request.patch(`/projects/${projectId}`, payload)
}
deleteProject(projectId) {
return this.request.delete(`/projects/${projectId}`)
}
fetchProjectById(projectId) {
return this.request.get(`/projects/${projectId}`)
}
}
export default new ProjectService()