Routing

chanx.routing.include(arg: URLRouter | str | ModuleType) URLRouter

Include router from another module for Channels routing.

This function can handle both: - Modules with a 'router' attribute that contains a list of paths - Modules with a 'router' attribute that is a URLRouter

Parameters:

arg -- Either a string path to a module or the module itself. The module should have a 'router' attribute.

Returns:

The router from the module as a list of URLPattern.