14 lines
278 B
Python
14 lines
278 B
Python
from django.http import JsonResponse
|
|
|
|
def health(request):
|
|
return JsonResponse({'status': 'ok'})
|
|
|
|
urlpatterns = []
|
|
|
|
# 使用简单的路由,避免引入 django.contrib.admin
|
|
from django.urls import path
|
|
urlpatterns = [
|
|
path('', health),
|
|
path('health/', health),
|
|
]
|