We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9fd22a commit 8bd56c8Copy full SHA for 8bd56c8
datamadsite/urls.py
@@ -17,13 +17,18 @@
17
from django.urls import path, include
18
from django.conf import settings
19
from django.conf.urls.static import static
20
+from django.shortcuts import HttpResponse
21
+
22
+def health_view(request):
23
+ return HttpResponse("OK")
24
25
urlpatterns = [
26
path('admin/', admin.site.urls),
27
path('', include('datamad2.urls')),
28
+ path('health/', health_view, name="health"),
29
path('api/', include('datamad2_api.urls')),
30
path('oauth/', include('jira_oauth.urls'))
31
]
32
33
if settings.DEBUG:
- urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
34
+ urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
0 commit comments