Files: 33c8c3ea806c7b24197e47850836a31c48daefd6 / app / todos / service.js
292 bytesRaw
1 | import knexService from 'feathers-knex' |
2 | import validate from 'feathers-tcomb' |
3 | |
4 | import db from 'app/db' |
5 | |
6 | import { Todo } from './models' |
7 | |
8 | export default knexService({ |
9 | Model: db, |
10 | name: 'todos' |
11 | }) |
12 | //.extend({ |
13 | // setup: function (app) { |
14 | // validate(app.service('todos'), Todo) |
15 | // } |
16 | //}) |
17 |
Built with git-ssb-web