Skip to content

Latest commit

 

History

History
119 lines (74 loc) · 4.02 KB

File metadata and controls

119 lines (74 loc) · 4.02 KB

@onzag/itemize / Modules / server

Module: server

This is the root server file and does the initialization of the server side of things

Table of contents

Namespaces

Interfaces

Functions

Functions

app

app(req, res): any

Express instance itself is a request handler, which could be invoked without third argument.

Parameters

Name Type
req IncomingMessage | Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
res ServerResponse | Response<any, Record<string, any>, number>

Returns

any

Defined in

node_modules/@types/express-serve-static-core/index.d.ts:1061

app(req, res, next): void

Parameters

Name Type
req Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
res Response<any, Record<string, any>, number>
next NextFunction

Returns

void

Defined in

node_modules/@types/express-serve-static-core/index.d.ts:60


getStorageProviders

getStorageProviders(config, sensitiveConfig, dbConfig, redisConfig, storageServiceProviders, registry): Promise<{ classesUsed: IServiceProviderClassType<any>[] ; cloudClients: IStorageProvidersObject ; instancesUsed: default<any>[] }>

Parameters

Name Type
config IConfigRawJSONDataType
sensitiveConfig ISensitiveConfigRawJSONDataType
dbConfig IDBConfigRawJSONDataType
redisConfig IRedisConfigRawJSONDataType
storageServiceProviders IStorageProviders
registry RegistryService

Returns

Promise<{ classesUsed: IServiceProviderClassType<any>[] ; cloudClients: IStorageProvidersObject ; instancesUsed: default<any>[] }>

Defined in

server/index.ts:281


initializeServer

initializeServer(ssrConfig, seoConfig, custom?): Promise<void>

Initializes the itemize server with its custom configuration

Parameters

Name Type Description
ssrConfig ISSRConfig the server side rendering rules
seoConfig ISEOConfig -
custom IServerCustomizationDataType the customization details

Returns

Promise<void>

Defined in

server/index.ts:384