Browse Source

Add config.service.js

pull/1206/head
Hironsan 3 years ago
parent
commit
14d103313f
1 changed files with 25 additions and 0 deletions
  1. 25
      frontend/services/config.service.js

25
frontend/services/config.service.js

@ -0,0 +1,25 @@
import ApiService from '@/services/api.service'
class ConfigService {
constructor() {
this.request = ApiService
}
getConfigList({ projectId }) {
return this.request.get(`/projects/${projectId}/auto-labeling-configs`)
}
addConfig(projectId, payload) {
return this.request.post(`/projects/${projectId}/auto-labeling-configs`, payload)
}
deleteConfig(projectId, configId) {
return this.request.delete(`/projects/${projectId}/auto-labeling-configs/${configId}`)
}
updateConfig(projectId, configId, payload) {
return this.request.patch(`/projects/${projectId}/auto-labeling-configs/${configId}`, payload)
}
}
export default new ConfigService()
Loading…
Cancel
Save