14 lines
363 B
Python
14 lines
363 B
Python
from django.http import JsonResponse
|
|
from django.urls import include, path
|
|
|
|
|
|
def health_check(_request):
|
|
return JsonResponse({'status': 'ok', 'service': 'funzone-accounting'})
|
|
|
|
|
|
urlpatterns = [
|
|
path('health', health_check, name='health'),
|
|
path('api/health', health_check, name='api_health'),
|
|
path('api/accounting/', include('accounting.urls')),
|
|
]
|