diff options
Diffstat (limited to 'server/controllers/services.ts')
-rw-r--r-- | server/controllers/services.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/controllers/services.ts b/server/controllers/services.ts index 0db6e5498..0c325678c 100644 --- a/server/controllers/services.ts +++ b/server/controllers/services.ts | |||
@@ -1,12 +1,16 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | 2 | ||
3 | import { CONFIG, PREVIEWS_SIZE, EMBED_SIZE } from '../initializers' | 3 | import { CONFIG, EMBED_SIZE, PREVIEWS_SIZE } from '../initializers' |
4 | import { oembedValidator } from '../middlewares' | 4 | import { oembedValidator } from '../middlewares' |
5 | import { asyncMiddleware } from '../middlewares/async' | ||
5 | import { VideoInstance } from '../models' | 6 | import { VideoInstance } from '../models' |
6 | 7 | ||
7 | const servicesRouter = express.Router() | 8 | const servicesRouter = express.Router() |
8 | 9 | ||
9 | servicesRouter.use('/oembed', oembedValidator, generateOEmbed) | 10 | servicesRouter.use('/oembed', |
11 | asyncMiddleware(oembedValidator), | ||
12 | generateOEmbed | ||
13 | ) | ||
10 | 14 | ||
11 | // --------------------------------------------------------------------------- | 15 | // --------------------------------------------------------------------------- |
12 | 16 | ||