Files: 2feb98c1e6e7d51eb76ec441dc2a134829471edd / 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