From 00b5556c182fa70dfca17c517488b8afae6257c9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 22 Feb 2018 10:22:53 +0100 Subject: Add ability to add custom css/javascript --- server/controllers/api/config.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'server/controllers') diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 532afb8c0..8cfaf3e29 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts @@ -43,7 +43,11 @@ async function getConfig (req: express.Request, res: express.Response, next: exp const json: ServerConfig = { instance: { - name: CONFIG.INSTANCE.NAME + name: CONFIG.INSTANCE.NAME, + customizations: { + javascript: CONFIG.INSTANCE.CUSTOMIZATIONS.JAVASCRIPT, + css: CONFIG.INSTANCE.CUSTOMIZATIONS.CSS + } }, serverVersion: packageJSON.version, signup: { @@ -132,7 +136,11 @@ function customConfig (): CustomConfig { instance: { name: CONFIG.INSTANCE.NAME, description: CONFIG.INSTANCE.DESCRIPTION, - terms: CONFIG.INSTANCE.TERMS + terms: CONFIG.INSTANCE.TERMS, + customizations: { + css: CONFIG.INSTANCE.CUSTOMIZATIONS.CSS, + javascript: CONFIG.INSTANCE.CUSTOMIZATIONS.JAVASCRIPT + } }, cache: { previews: { -- cgit v1.2.3