"""
Core app URLs
"""
from django.urls import path

from .views import (
    health_check,
    select_hospital,
    no_hospital_assigned,
    public_submit_landing,
    public_inquiry_submit,
    public_observation_submit,
    api_hospitals,
    api_observation_categories
)
from . import config_views

app_name = 'core'

urlpatterns = [
    # Health check
    path('', health_check, name='health'),

    # Hospital selection
    path('select-hospital/', select_hospital, name='select_hospital'),
    path('no-hospital/', no_hospital_assigned, name='no_hospital_assigned'),

    # Public submission pages
    path('public/submit/', public_submit_landing, name='public_submit_landing'),
    path('public/inquiry/submit/', public_inquiry_submit, name='public_inquiry_submit'),
    path('public/observation/submit/', public_observation_submit, name='public_observation_submit'),
    path('api/hospitals/', api_hospitals, name='api_hospitals'),
    path('api/observation-categories/', api_observation_categories, name='api_observation_categories'),
]

# Configuration URLs (separate app_name)
config_urlpatterns = [
    path('', config_views.config_dashboard, name='dashboard'),
    path('sla/', config_views.sla_config_list, name='sla_config_list'),
    path('routing/', config_views.routing_rules_list, name='routing_rules_list'),
]
