14 lines
285 B
JavaScript
14 lines
285 B
JavaScript
|
import AbstractService from './abstractService'
|
||
|
import TaskModel from '../models/task'
|
||
|
|
||
|
export default class TaskCollectionService extends AbstractService {
|
||
|
constructor() {
|
||
|
super({
|
||
|
getAll: '/lists/{listID}/tasks',
|
||
|
})
|
||
|
}
|
||
|
|
||
|
modelFactory(data) {
|
||
|
return new TaskModel(data)
|
||
|
}
|
||
|
}
|