aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/config.ts')
-rw-r--r--server/controllers/api/config.ts12
1 files changed, 10 insertions, 2 deletions
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
43 43
44 const json: ServerConfig = { 44 const json: ServerConfig = {
45 instance: { 45 instance: {
46 name: CONFIG.INSTANCE.NAME 46 name: CONFIG.INSTANCE.NAME,
47 customizations: {
48 javascript: CONFIG.INSTANCE.CUSTOMIZATIONS.JAVASCRIPT,
49 css: CONFIG.INSTANCE.CUSTOMIZATIONS.CSS
50 }
47 }, 51 },
48 serverVersion: packageJSON.version, 52 serverVersion: packageJSON.version,
49 signup: { 53 signup: {
@@ -132,7 +136,11 @@ function customConfig (): CustomConfig {
132 instance: { 136 instance: {
133 name: CONFIG.INSTANCE.NAME, 137 name: CONFIG.INSTANCE.NAME,
134 description: CONFIG.INSTANCE.DESCRIPTION, 138 description: CONFIG.INSTANCE.DESCRIPTION,
135 terms: CONFIG.INSTANCE.TERMS 139 terms: CONFIG.INSTANCE.TERMS,
140 customizations: {
141 css: CONFIG.INSTANCE.CUSTOMIZATIONS.CSS,
142 javascript: CONFIG.INSTANCE.CUSTOMIZATIONS.JAVASCRIPT
143 }
136 }, 144 },
137 cache: { 145 cache: {
138 previews: { 146 previews: {