#256: rename page URLs to match nav labels (/public, /saved)
This commit is contained in:
+4
-4
@@ -433,9 +433,9 @@ func (h *Handlers) HandleNewPage(w http.ResponseWriter, r *http.Request) {
|
||||
h.renderPage(w, "new.html", map[string]any{"Page": "new"})
|
||||
}
|
||||
|
||||
// HandleHistoryPage serves /history.
|
||||
// HandleHistoryPage serves /public.
|
||||
func (h *Handlers) HandleHistoryPage(w http.ResponseWriter, r *http.Request) {
|
||||
h.renderPage(w, "history.html", map[string]any{"Page": "history"})
|
||||
h.renderPage(w, "history.html", map[string]any{"Page": "public"})
|
||||
}
|
||||
|
||||
// HandleSettingsPage serves /settings.
|
||||
@@ -452,9 +452,9 @@ func (h *Handlers) HandleSettingsPage(w http.ResponseWriter, r *http.Request) {
|
||||
h.renderPage(w, "settings.html", map[string]any{"Page": "settings", "Themes": themes})
|
||||
}
|
||||
|
||||
// HandleMinePage serves /mine.
|
||||
// HandleMinePage serves /saved.
|
||||
func (h *Handlers) HandleMinePage(w http.ResponseWriter, r *http.Request) {
|
||||
h.renderPage(w, "mine.html", map[string]any{"Page": "mine"})
|
||||
h.renderPage(w, "mine.html", map[string]any{"Page": "saved"})
|
||||
}
|
||||
|
||||
// HandleAdminPage serves /admin.
|
||||
|
||||
Reference in New Issue
Block a user