Reference Source
public class | source

ExecutableRouteAssets

Extends:

devapt-core-common/dist/js/base/executable~ExecutableExecutableRoute → ExecutableRouteAssets

Constructor Summary

Public Constructor
public

constructor(): nothing

Create an assets route registering executable.

Method Summary

Public Methods
public

get_route_cb(arg_application: object, arg_cfg_route: object, arg_data: object): function

Callback for route handling.

public

get_route_directory_cb(arg_application: object, arg_cfg_route: object, arg_data: object): function

Callback for route handling.

public

get_route_plugins_cb(arg_application: object, arg_cfg_route: object, arg_data: object, route: function): *

Callback for route handling.

Inherited Summary

From class ExecutableRoute
protected

Executable server.

protected

Executable settings.

public

execute(arg_data: object): object

Execution with contextual informations.

public abstract

get_route_cb(arg_application: TopologyDefineApplication, arg_cfg_route: object, arg_data: object, route: function)

Callback for route handling.

public

get_route_redirect_cb(arg_application: TopologyDefineApplication, arg_cfg_route: object, arg_data: object, route: function): *

Callback for redirect route handling.

public

prepare(arg_settings: object): nothing

Prepare an execution with contextual informations.

public

process_route(arg_server: Server, arg_application: TopologyDefineApplication, arg_cfg_route: object, arg_data: object): Promise

Process a route registering.

Public Constructors

public constructor(): nothing source

Create an assets route registering executable.

Override:

ExecutableRoute#constructor

Return:

nothing

Public Methods

public get_route_cb(arg_application: object, arg_cfg_route: object, arg_data: object): function source

Callback for route handling.

Override:

ExecutableRoute#get_route_cb

Params:

NameTypeAttributeDescription
arg_application object

Application instance.

arg_cfg_route object

plain object route configuration.

arg_data object

plain object contextual datas.

Return:

function

route handler.

public get_route_directory_cb(arg_application: object, arg_cfg_route: object, arg_data: object): function source

Callback for route handling.

Params:

NameTypeAttributeDescription
arg_application object

Application instance.

arg_cfg_route object

plain object route configuration.

arg_data object

plain object contextual datas.

Return:

function

route handler.

public get_route_plugins_cb(arg_application: object, arg_cfg_route: object, arg_data: object, route: function): * source

Callback for route handling.

Params:

NameTypeAttributeDescription
arg_application object

Application instance.

arg_cfg_route object

plain object route configuration.

arg_data object

plain object contextual datas.

route function

handler.

Return:

*