oncall-engine/engine/engine/integrations_urls.py
Matias Bordese 11259de8e0
Add settings to allow detaching integrations server (#3203)
To run a detached integrations server:
1. Set env var `DETACHED_INTEGRATIONS_SERVER=True`
2. Run engine with the `integrations_urls.py` root url conf
(e.g. `ROOT_URLCONF=engine.integrations_urls python manage.py runserver
0.0.0.0:8081`)
2023-10-26 12:55:02 +00:00

9 lines
342 B
Python

from django.urls import URLPattern, URLResolver, include, path
from .urls import paths_to_work_even_when_maintenance_mode_is_active
urlpatterns: list[URLPattern | URLResolver] = paths_to_work_even_when_maintenance_mode_is_active
urlpatterns += [
path("integrations/v1/", include("apps.integrations.urls", namespace="integrations")),
]