16 lines
No EOL
369 B
TypeScript
16 lines
No EOL
369 B
TypeScript
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',
|
|
delete: '/tasks/{taskId}/labels/{labelId}',
|
|
})
|
|
}
|
|
|
|
modelFactory(data) {
|
|
return new LabelTask(data)
|
|
}
|
|
} |