git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 7565f0a3a2bb8400488b3acd6395b0306df1c5df

Files: 7565f0a3a2bb8400488b3acd6395b0306df1c5df / app / todos / service.js

317 bytesRaw
1import knexService from 'feathers-knex'
2import validate from 'feathers-tcomb'
3
4import db from 'app/db'
5
6import { Todo } from './models'
7
8export 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