aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-22 10:22:53 +0100
committerChocobozzz <me@florianbigard.com>2018-02-22 10:22:53 +0100
commit00b5556c182fa70dfca17c517488b8afae6257c9 (patch)
tree853ad8d85572b5b37b1956fea96a51fed211453f /server/controllers
parent6221f311de0eb8f2a9e7e4a77b8cb0ecbde6dfcd (diff)
downloadPeerTube-00b5556c182fa70dfca17c517488b8afae6257c9.tar.gz
PeerTube-00b5556c182fa70dfca17c517488b8afae6257c9.tar.zst
PeerTube-00b5556c182fa70dfca17c517488b8afae6257c9.zip
Add ability to add custom css/javascript
Diffstat (limited to 'server/controllers')
-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: {