chore: 优化 Docker 配置,添加生产环境部署脚本和文档
All checks were successful
Deploy to Server / deploy (push) Successful in 19s
All checks were successful
Deploy to Server / deploy (push) Successful in 19s
This commit is contained in:
@@ -2,11 +2,21 @@ from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
from django.http import JsonResponse
|
||||
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView, SpectacularRedocView
|
||||
from competition import judge_views
|
||||
|
||||
# 健康检查视图
|
||||
def health_check(request):
|
||||
return JsonResponse({
|
||||
'status': 'healthy',
|
||||
'service': '创赢未来报名评分系统',
|
||||
'version': '1.0.0'
|
||||
})
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('api/health/', health_check, name='health_check'),
|
||||
|
||||
# Judge System Routes
|
||||
path('judge/', include('competition.judge_urls')),
|
||||
|
||||
Reference in New Issue
Block a user