feat: add terms and privacy pages

This commit is contained in:
juancwu 2026-01-30 03:21:12 +00:00
commit c473c88c33
9 changed files with 240 additions and 6 deletions

View file

@ -24,6 +24,14 @@ func (h *homeHandler) HomePage(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/app/dashboard", http.StatusSeeOther)
}
func (h *homeHandler) PrivacyPage(w http.ResponseWriter, r *http.Request) {
ui.Render(w, r, pages.Privacy())
}
func (h *homeHandler) TermsPage(w http.ResponseWriter, r *http.Request) {
ui.Render(w, r, pages.Terms())
}
func (home *homeHandler) NotFoundPage(w http.ResponseWriter, r *http.Request) {
ui.Render(w, r, pages.NotFound())
}