aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/hosts.py
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-04-24 16:44:59 +0200
committerGravatar GitHub <[email protected]>2021-04-24 16:44:59 +0200
commit657ef9345a3fe55dc0a5443d2a89a0874a6302d3 (patch)
tree098b7572e2b380b7f57ae7eedb180fa0b70edc8e /pydis_site/hosts.py
parentPagination: Use REPL style examples (diff)
parentMerge pull request #481 from dawnofmidnight/patch-1 (diff)
Merge branch 'main' into limit-infraction-result
Diffstat (limited to 'pydis_site/hosts.py')
-rw-r--r--pydis_site/hosts.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pydis_site/hosts.py b/pydis_site/hosts.py
index 898e8cdc..5a837a8b 100644
--- a/pydis_site/hosts.py
+++ b/pydis_site/hosts.py
@@ -4,7 +4,10 @@ from django_hosts import host, patterns
host_patterns = patterns(
'',
host(r'admin', 'pydis_site.apps.admin.urls', name="admin"),
+ # External API ingress (over the net)
host(r'api', 'pydis_site.apps.api.urls', name='api'),
+ # Internal API ingress (cluster local)
+ host(r'pydis-api', 'pydis_site.apps.api.urls', name='internal_api'),
host(r'staff', 'pydis_site.apps.staff.urls', name='staff'),
host(r'.*', 'pydis_site.apps.home.urls', name=settings.DEFAULT_HOST)
)