Add /install path
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Elara 2024-02-19 20:19:53 -08:00
parent 639585ec08
commit ed99c7ce5f

View File

@ -48,6 +48,11 @@ func registerSite(mux *bunrouter.Router) {
return HTTPError{404, "page not found: " + req.URL.Path} 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 { g.GET("/about", func(w http.ResponseWriter, req bunrouter.Request) error {
return ns.ExecuteTemplate(w, "about.html", nil) return ns.ExecuteTemplate(w, "about.html", nil)
}) })