Skip to content
6 changes: 6 additions & 0 deletions images/common/openwisp/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@

routes.extend(network_topology_routes)

if env_bool(os.environ.get("USE_OPENWISP_FIRMWARE")):
from openwisp_firmware_upgrader.routing import ( # noqa: E402
websocket_urlpatterns as firmware_upgrader_routes,
)

routes.extend(firmware_upgrader_routes)
if env_bool(os.environ["USE_OPENWISP_RADIUS"]):
from openwisp_radius.routing import websocket_urlpatterns as radius_routes

Expand Down