package handlers

import "net/http"

// Server-rendered page endpoints for the Akten UI.
//
// Like the rest of Paliad, pages are statically generated at build time
// (bun run build) and served from disk; per-page client TS bundles call the
// JSON APIs in akten.go to populate the DOM.
//
// Sub-routes (/akten/{id}/events, /deadlines, /appointments, /documents, /parties,
// /notes) all serve the same detail HTML; client JS reads window.location to
// pick the initial tab. Deadlines/Appointments/Dokumente/Notes tabs currently show
// a "Coming Soon — Phase X" panel in the client until later phases land.

func handleProjectsListPage(w http.ResponseWriter, r *http.Request) {
	http.ServeFile(w, r, "dist/projects.html")
}

func handleProjectsNewPage(w http.ResponseWriter, r *http.Request) {
	http.ServeFile(w, r, "dist/projects-new.html")
}

func handleProjectsDetailPage(w http.ResponseWriter, r *http.Request) {
	http.ServeFile(w, r, "dist/projects-detail.html")
}
