vikunja-frontend/src/services/labelTask.js

16 lines
369 B
JavaScript
Raw Normal View History

import AbstractService from './abstractService'
import LabelTask from '../models/labelTask'
2019-03-07 20:48:40 +01:00
export default class LabelTaskService extends AbstractService {
constructor() {
super({
create: '/tasks/{taskId}/labels',
getAll: '/tasks/{taskId}/labels',
delete: '/tasks/{taskId}/labels/{labelId}',
2019-03-07 20:48:40 +01:00
})
}
2019-03-07 20:48:40 +01:00
modelFactory(data) {
return new LabelTask(data)
}
}