You've already forked opc-backend
19 lines
581 B
Python
19 lines
581 B
Python
|
|
from django.contrib import admin
|
||
|
|
from django.urls import path, include
|
||
|
|
from django.http import JsonResponse
|
||
|
|
|
||
|
|
def health_check(request):
|
||
|
|
return JsonResponse({"status": "ok", "message": "OPC Community Platform API is running"})
|
||
|
|
|
||
|
|
urlpatterns = [
|
||
|
|
path('admin/', admin.site.urls),
|
||
|
|
path('api/health/', health_check),
|
||
|
|
|
||
|
|
# API v1 routes
|
||
|
|
path('api/v1/', include('users.urls')),
|
||
|
|
path('api/v1/', include('tasks.urls')),
|
||
|
|
path('api/v1/', include('reservations.urls')),
|
||
|
|
path('api/v1/', include('opc_cert.urls')),
|
||
|
|
path('api/v1/', include('system.urls')),
|
||
|
|
]
|