diff options
Diffstat (limited to 'services/feed/feed.class.ts')
-rw-r--r-- | services/feed/feed.class.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/services/feed/feed.class.ts b/services/feed/feed.class.ts new file mode 100644 index 0000000..ceb86e6 --- /dev/null +++ b/services/feed/feed.class.ts @@ -0,0 +1,17 @@ +import { Application } from '@feathersjs/express'; +import { Params } from '@feathersjs/feathers'; +import { Poll } from 'which-types'; + + +export default class Feed { + app!: Application; + + async find(params: Params): Promise<Poll[]> { + return this.app.service('polls').find(params); + } + + setup(app: Application): void { + this.app = app; + } +} + |