from django.urls import path

from ..views import (
    ClassUsernamesAPI,
    HitokotoAPI,
    JudgeServerHeartbeatAPI,
    LanguagesAPI,
    WebsiteConfigAPI,
)

urlpatterns = [
    path("website", WebsiteConfigAPI.as_view()),
    # 这里必须要有 /
    path("judge_server_heartbeat/", JudgeServerHeartbeatAPI.as_view()),
    path("languages", LanguagesAPI.as_view()),  # DEPRECATED: 前端未调用
    path("hitokoto", HitokotoAPI.as_view()),
    path("class_usernames", ClassUsernamesAPI.as_view()),
]
