2020-09-05 22:35:52 +02:00
|
|
|
import AbstractService from './abstractService'
|
2022-09-06 11:36:01 +02:00
|
|
|
import LabelTask from '@/models/labelTask'
|
|
|
|
import type {ILabelTask} from '@/modelTypes/ILabelTask'
|
2019-03-07 20:48:40 +01:00
|
|
|
|
2022-07-21 18:56:31 +02:00
|
|
|
export default class LabelTaskService extends AbstractService<ILabelTask> {
|
2019-03-07 20:48:40 +01:00
|
|
|
constructor() {
|
|
|
|
super({
|
2020-04-17 12:19:53 +02:00
|
|
|
create: '/tasks/{taskId}/labels',
|
|
|
|
getAll: '/tasks/{taskId}/labels',
|
|
|
|
delete: '/tasks/{taskId}/labels/{labelId}',
|
2019-03-07 20:48:40 +01:00
|
|
|
})
|
|
|
|
}
|
2020-09-05 22:35:52 +02:00
|
|
|
|
2019-03-07 20:48:40 +01:00
|
|
|
modelFactory(data) {
|
|
|
|
return new LabelTask(data)
|
|
|
|
}
|
|
|
|
}
|