From d2a36660fb2316ba1fe31cf32d55eda1f4451ff6 Mon Sep 17 00:00:00 2001 From: Liam Stanley Date: Mon, 18 Nov 2019 23:11:19 -0500 Subject: [PATCH] move abuse page in preparation for supporting #14 --- http.go | 2 +- static/partials/card_footer.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/http.go b/http.go index b033dc0..fe65176 100644 --- a/http.go +++ b/http.go @@ -56,7 +56,7 @@ func httpServer() { r.Get("/", func(w http.ResponseWriter, r *http.Request) { tmpl.Render(w, r, "tmpl/index.html", nil) }) - r.Get("/abuse", func(w http.ResponseWriter, r *http.Request) { tmpl.Render(w, r, "tmpl/abuse.html", nil) }) + r.Get("/-/abuse", func(w http.ResponseWriter, r *http.Request) { tmpl.Render(w, r, "tmpl/abuse.html", nil) }) r.Get("/{uid}", expand) r.Post("/{uid}", expand) r.Post("/", addForm) diff --git a/static/partials/card_footer.html b/static/partials/card_footer.html index 374e3ae..5077cbb 100644 --- a/static/partials/card_footer.html +++ b/static/partials/card_footer.html @@ -6,7 +6,7 @@ {%if url.Path != "/" %}home |{% endif %} - abuse | + abuse | api | links