mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
See: https://docs.djangoproject.com/en/stable/releases/2.0/ The only required changes are - as reported in #1466 - the addition of `app_name` in `urls.py` for URL namespaces.
14 lines
340 B
Python
14 lines
340 B
Python
"""External API urls."""
|
|
|
|
from django.urls import include, path
|
|
|
|
from modoboa.core.extensions import exts_pool
|
|
|
|
app_name = "api"
|
|
|
|
urlpatterns = [
|
|
path('', include("modoboa.admin.urls_api")),
|
|
path('', include("modoboa.limits.urls_api")),
|
|
path('', include("modoboa.relaydomains.urls_api")),
|
|
] + exts_pool.get_urls(category="api")
|