from django.urls import path
from . import public_views

app_name = "public"

urlpatterns = [
    # List schools WITH results (from school_year_summary)
    path(
        "results/<int:year>/<slug:exam_code>/",
        public_views.public_schools,
        name="public_schools",
    ),

    # View results of a specific school
    path(
        "results/<int:year>/<slug:exam_code>/school/<slug:school_code>/",
        public_views.public_school_results,
        name="public_school_results",
    ),
]
