summaryrefslogtreecommitdiff
path: root/src/services/uploads.service.ts
blob: 520079fedd2977bfa636196851a835a966571c51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { Application } from '@feathersjs/express';
import blobService from 'feathers-blob';
import fs from 'fs-blob-store';
import Bluebird from 'bluebird';
import _ from 'lodash';

const blobStorage = fs('./uploads');

const uploads = blobService({ Model: blobStorage });

export default (app: Application): void => {
  app.use('/uploads', uploads)
};