API Docs for: 0.7.5
Show:

Config.common Class

Access point: ac.config.* Provides access to the Mojits configuration

Methods

get

(
  • key
  • def
)
Object | Array | String

Access config values.

Parameters:

  • key String

    A period separated key path to look for i.e. "get.my.value".

  • def Object | Array | String

    The default value to use if no match was found.

Returns:

Object | Array | String: The requested configuration value.

getAppConfig

() Object

returns the application config

Returns:

Object: the app config

getDefinition

(
  • key
  • def
)
Object | Array | String

Access definition values.

Parameters:

  • key String

    A period separated key path to look for i.e. "get.my.value".

  • def Object | Array | String

    The default value to use if no match was found.

Returns:

Object | Array | String: The requested definition values.

getRoutes

() Object

returns the routes

Returns:

Object: the routes