17 lines
No EOL
436 B
TypeScript
17 lines
No EOL
436 B
TypeScript
import AbstractService from './abstractService'
|
|
import LabelTask from '@/models/labelTask'
|
|
import type {ILabelTask} from '@/modelTypes/ILabelTask'
|
|
|
|
export default class LabelTaskService extends AbstractService<ILabelTask> {
|
|
constructor() {
|
|
super({
|
|
create: '/tasks/{taskId}/labels',
|
|
getAll: '/tasks/{taskId}/labels',
|
|
delete: '/tasks/{taskId}/labels/{labelId}',
|
|
})
|
|
}
|
|
|
|
modelFactory(data) {
|
|
return new LabelTask(data)
|
|
}
|
|
} |