# new Router(coreObj) → {Server.Modules.Router}
This is the Router Module of the Blackrock Application Server. It is responsible for accepting incoming requests from any of the interfaces and then routing these requests on to the relevant app + controller. It then routes the response back from the controller to the originating interface.
Parameters:
Name | Type | Description |
---|---|---|
coreObj |
Server.Modules.Core | The Core Module Singleton |
- Copyright:
- Copyright (c) 2021 Darren Smith
- License:
- Licensed under the LGPL license.
- Source:
Returns:
module - The Router Module Singleton
Example
Tbc...
Extends
Classes
Methods
# (static) count() → {number}
Tbc...
- Source:
Returns:
Number of Active Routers
- Type
- number
Example
Tbc...
# (static) get() → {string|Server.Modules.Router.router}
Tbc...
- Source:
Returns:
-
name - Router Name
- Type
- string
-
Router Object
Example
Tbc...
# (static) list() → {array}
Tbc...
- Source:
Returns:
Array of Routers
- Type
- array
Example
Tbc...
# (static) new(name) → {Server.Modules.Router.router}
Tbc...
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Router Name |
- Source:
Returns:
router - Router
Example
Tbc...