Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "config"

Index

Object literals

Object literals

Const FUNCTIONS_CONFIG

FUNCTIONS_CONFIG: object

Local Configs

cacheResponses

cacheResponses: boolean = false

do you want to cache responses?

defaultLanguageCode

defaultLanguageCode: string = "tr"

default language code to redirect; en, tr

supportedCultureCodes

supportedCultureCodes: string[] = ['en-US', 'tr-TR']

supported culture codes; ['en', 'tr']

supportedLanguageCodes

supportedLanguageCodes: string[] = ['en', 'tr']

supported language codes; ['en', 'tr']

unitTestHttpPort

unitTestHttpPort: number = 5100

http port to run unit test

isRequestValid

  • isRequestValid(req: express.Request, res: express.Response, send404Page: (req1: any, res1: any) => Promise<void>): Promise<boolean>
  • check if request is valid resolve true if it is OK resolve false if it is Invalid or Bad

    Parameters

    • req: express.Request
    • res: express.Response
    • send404Page: (req1: any, res1: any) => Promise<void>
        • (req1: any, res1: any): Promise<void>
        • Parameters

          • req1: any
          • res1: any

          Returns Promise<void>

    Returns Promise<boolean>

cors

cors: object

origin

origin: boolean = true

csp

csp: object

directives

directives: object

defaultSrc

defaultSrc: string[] = ["'self'", '*.googleapis.com', '*.google-analytics.com']

imgSrc

imgSrc: string[] = ["'self'", 'data:', '*.googleapis.com', '*.google.com','*.google.com.tr', '*.google-analytics.com', '*.doubleclick.net']

scriptSrc

scriptSrc: string[] = ["'self'", "'unsafe-inline'", "'unsafe-eval'", '*.googletagmanager.com', '*.google-analytics.com', '*.google.com']

styleSrc

styleSrc: string[] = ["'self'", "'unsafe-inline'", '*.google.com']

Generated using TypeDoc