diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/config.ts | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 44f3d3ef7..24e7601ec 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -65,9 +65,15 @@ async function getConfig (req: express.Request, res: express.Response) { | |||
65 | instance: { | 65 | instance: { |
66 | name: CONFIG.INSTANCE.NAME, | 66 | name: CONFIG.INSTANCE.NAME, |
67 | shortDescription: CONFIG.INSTANCE.SHORT_DESCRIPTION, | 67 | shortDescription: CONFIG.INSTANCE.SHORT_DESCRIPTION, |
68 | defaultClientRoute: CONFIG.INSTANCE.DEFAULT_CLIENT_ROUTE, | ||
69 | isNSFW: CONFIG.INSTANCE.IS_NSFW, | 68 | isNSFW: CONFIG.INSTANCE.IS_NSFW, |
70 | defaultNSFWPolicy: CONFIG.INSTANCE.DEFAULT_NSFW_POLICY, | 69 | defaultNSFWPolicy: CONFIG.INSTANCE.DEFAULT_NSFW_POLICY, |
70 | defaultClientRoute: CONFIG.INSTANCE.DEFAULT_CLIENT_ROUTE, | ||
71 | defaultTrendingRoute: CONFIG.INSTANCE.DEFAULT_TRENDING_ROUTE, | ||
72 | pages: { | ||
73 | hot: { | ||
74 | enabled: CONFIG.INSTANCE.PAGES.HOT.ENABLED | ||
75 | } | ||
76 | }, | ||
71 | customizations: { | 77 | customizations: { |
72 | javascript: CONFIG.INSTANCE.CUSTOMIZATIONS.JAVASCRIPT, | 78 | javascript: CONFIG.INSTANCE.CUSTOMIZATIONS.JAVASCRIPT, |
73 | css: CONFIG.INSTANCE.CUSTOMIZATIONS.CSS | 79 | css: CONFIG.INSTANCE.CUSTOMIZATIONS.CSS |
@@ -362,8 +368,16 @@ function customConfig (): CustomConfig { | |||
362 | categories: CONFIG.INSTANCE.CATEGORIES, | 368 | categories: CONFIG.INSTANCE.CATEGORIES, |
363 | 369 | ||
364 | isNSFW: CONFIG.INSTANCE.IS_NSFW, | 370 | isNSFW: CONFIG.INSTANCE.IS_NSFW, |
365 | defaultClientRoute: CONFIG.INSTANCE.DEFAULT_CLIENT_ROUTE, | ||
366 | defaultNSFWPolicy: CONFIG.INSTANCE.DEFAULT_NSFW_POLICY, | 371 | defaultNSFWPolicy: CONFIG.INSTANCE.DEFAULT_NSFW_POLICY, |
372 | |||
373 | defaultClientRoute: CONFIG.INSTANCE.DEFAULT_CLIENT_ROUTE, | ||
374 | defaultTrendingRoute: CONFIG.INSTANCE.DEFAULT_TRENDING_ROUTE, | ||
375 | pages: { | ||
376 | hot: { | ||
377 | enabled: CONFIG.INSTANCE.PAGES.HOT.ENABLED | ||
378 | } | ||
379 | }, | ||
380 | |||
367 | customizations: { | 381 | customizations: { |
368 | css: CONFIG.INSTANCE.CUSTOMIZATIONS.CSS, | 382 | css: CONFIG.INSTANCE.CUSTOMIZATIONS.CSS, |
369 | javascript: CONFIG.INSTANCE.CUSTOMIZATIONS.JAVASCRIPT | 383 | javascript: CONFIG.INSTANCE.CUSTOMIZATIONS.JAVASCRIPT |