2019-03-07 20:48:40 +01:00
|
|
|
import AbstractService from "./abstractService";
|
|
|
|
import LabelTask from "../models/labelTask";
|
|
|
|
|
|
|
|
export default class LabelTaskService extends AbstractService {
|
|
|
|
constructor() {
|
|
|
|
super({
|
|
|
|
create: '/tasks/{taskID}/labels',
|
|
|
|
getAll: '/tasks/{taskID}/labels',
|
2020-04-12 23:54:46 +02:00
|
|
|
delete: '/tasks/{taskID}/labels/{labelId}',
|
2019-03-07 20:48:40 +01:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
modelFactory(data) {
|
|
|
|
return new LabelTask(data)
|
|
|
|
}
|
|
|
|
}
|