ZibriApplicationOptions: {
    authStrategies?: AuthStrategies;
    baseUrl: string;
    bodyParsers?: Newable<BodyParserInterface>[];
    controllers: Newable<unknown>[];
    cronJobs?: Newable<CronJob>[];
    dataSources?: Newable<BaseDataSource>[];
    name: string;
    plugins?: Newable<ZibriPlugin>[];
    providers?: DiProvider<unknown>[];
    version: Version;
    websocketControllers: Newable<unknown>[];
}

All options for a Zibri application.

Type declaration

  • OptionalauthStrategies?: AuthStrategies

    The auth strategies to register.

    If nothing is provided, the Zibri default jwt auth strategy will be used.

  • baseUrl: string

    The base url of the app. Eg. Http://localhost:3000.

  • OptionalbodyParsers?: Newable<BodyParserInterface>[]

    The body parsers to register.

    If nothing is provided, the Zibri default parsers will be used.

  • controllers: Newable<unknown>[]

    The controllers to register in the app.

  • OptionalcronJobs?: Newable<CronJob>[]

    The cron jobs to register in the app.

  • OptionaldataSources?: Newable<BaseDataSource>[]

    The data sources to register in the app.

  • name: string

    The name of the app.

  • Optionalplugins?: Newable<ZibriPlugin>[]

    The plugins to be used.

  • Optionalproviders?: DiProvider<unknown>[]

    The DI providers to register/override.

  • version: Version

    The SemVer version of the app.

    Is also used by migrations by default.

  • websocketControllers: Newable<unknown>[]

    The websocket controllers to register in the app.