From ed99c7ce5f68a87448e4b77133c5b884ae04cb77 Mon Sep 17 00:00:00 2001 From: Elara6331 Date: Mon, 19 Feb 2024 20:19:53 -0800 Subject: [PATCH] Add /install path --- site.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/site.go b/site.go index 7cb34ec..dbe736a 100644 --- a/site.go +++ b/site.go @@ -48,6 +48,11 @@ func registerSite(mux *bunrouter.Router) { return HTTPError{404, "page not found: " + req.URL.Path} }) + g.GET("/install", func(w http.ResponseWriter, req bunrouter.Request) error { + http.Redirect(w, req.Request, "https://gitea.elara.ws/lure/lure/raw/branch/master/scripts/install.sh", http.StatusFound) + return nil + }) + g.GET("/about", func(w http.ResponseWriter, req bunrouter.Request) error { return ns.ExecuteTemplate(w, "about.html", nil) })