blob: ceb86e656ce4615f2c72406491c4c6b53c0c8ed3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}
}
|