Skip to content

Commit 8bd56c8

Browse files
authored
Update urls.py
1 parent c9fd22a commit 8bd56c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

datamadsite/urls.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,18 @@
1717
from django.urls import path, include
1818
from django.conf import settings
1919
from django.conf.urls.static import static
20+
from django.shortcuts import HttpResponse
21+
22+
def health_view(request):
23+
return HttpResponse("OK")
2024

2125
urlpatterns = [
2226
path('admin/', admin.site.urls),
2327
path('', include('datamad2.urls')),
28+
path('health/', health_view, name="health"),
2429
path('api/', include('datamad2_api.urls')),
2530
path('oauth/', include('jira_oauth.urls'))
2631
]
2732

2833
if settings.DEBUG:
29-
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
34+
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

0 commit comments

Comments
 (0)