X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fservices.ts;h=c1c53c3fc80466a72aad65ed53493e586d688a8c;hb=26ff0279d08bc5d4cb13a2f71e314b05d544da89;hp=cf7a513af8c182bba8fb6b30bcb848334e1bc243;hpb=dae86118ed5d4026d04acb9d0e36829b9ad8eb4e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/services.ts b/server/controllers/services.ts index cf7a513af..c1c53c3fc 100644 --- a/server/controllers/services.ts +++ b/server/controllers/services.ts @@ -1,8 +1,7 @@ import * as express from 'express' -import { CONFIG, EMBED_SIZE, PREVIEWS_SIZE } from '../initializers' +import { EMBED_SIZE, PREVIEWS_SIZE, WEBSERVER } from '../initializers/constants' import { asyncMiddleware, oembedValidator } from '../middlewares' import { accountNameWithHostGetValidator } from '../middlewares/validators' -import { VideoModel } from '../models/video/video' const servicesRouter = express.Router() @@ -25,7 +24,7 @@ export { function generateOEmbed (req: express.Request, res: express.Response) { const video = res.locals.video - const webserverUrl = CONFIG.WEBSERVER.URL + const webserverUrl = WEBSERVER.URL const maxHeight = parseInt(req.query.maxheight, 10) const maxWidth = parseInt(req.query.maxwidth, 10)