Reference Source
public class | source

ExecutableRouteMiddleware

Extends:

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

Constructor Summary

Public Constructor
public

constructor(): nothing

Create a route middleware executable

Method Summary

Public Methods
public

get_route_cb(arg_application: TopologyDefineApplication, 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 a route middleware executable

Override:

ExecutableRoute#constructor

Return:

nothing

Public Methods

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

Callback for route handling.

Override:

ExecutableRoute#get_route_cb

Params:

NameTypeAttributeDescription
arg_application TopologyDefineApplication

Application instance.

arg_cfg_route object

plain object route configuration.

arg_data object

plain object contextual datas.

route function

handler.

Return:

*