Files: 7565f0a3a2bb8400488b3acd6395b0306df1c5df / app / todos / service.js
317 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 | }).extend({ |
12 | setup: function (app) { |
13 | this._super && this._super(app) |
14 | validate(app.service('todos'), Todo) |
15 | } |
16 | }) |
17 |
Built with git-ssb-web