diff options
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index c7ef9b497..e1f807752 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -278,8 +278,16 @@ const CONFIG = { | |||
278 | get CATEGORIES () { return config.get<number[]>('instance.categories') || [] }, | 278 | get CATEGORIES () { return config.get<number[]>('instance.categories') || [] }, |
279 | 279 | ||
280 | get IS_NSFW () { return config.get<boolean>('instance.is_nsfw') }, | 280 | get IS_NSFW () { return config.get<boolean>('instance.is_nsfw') }, |
281 | get DEFAULT_CLIENT_ROUTE () { return config.get<string>('instance.default_client_route') }, | ||
282 | get DEFAULT_NSFW_POLICY () { return config.get<NSFWPolicyType>('instance.default_nsfw_policy') }, | 281 | get DEFAULT_NSFW_POLICY () { return config.get<NSFWPolicyType>('instance.default_nsfw_policy') }, |
282 | |||
283 | get DEFAULT_CLIENT_ROUTE () { return config.get<string>('instance.default_client_route') }, | ||
284 | get DEFAULT_TRENDING_ROUTE () { return config.get<string>('instance.default_trending_route') }, | ||
285 | PAGES: { | ||
286 | HOT: { | ||
287 | get ENABLED () { return config.get<boolean>('instance.pages.hot.enabled') } | ||
288 | } | ||
289 | }, | ||
290 | |||
283 | CUSTOMIZATIONS: { | 291 | CUSTOMIZATIONS: { |
284 | get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') }, | 292 | get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') }, |
285 | get CSS () { return config.get<string>('instance.customizations.css') } | 293 | get CSS () { return config.get<string>('instance.customizations.css') } |