mirror of
https://git.evilfox.cc/test2/wg.git
synced 2026-07-31 20:03:22 +00:00
Fix Dokploy Bad Gateway: dokploy-network and expose 8080.
This commit is contained in:
@@ -70,6 +70,11 @@ func main() {
|
||||
fileServer(r, "/static/", http.Dir(staticDir))
|
||||
|
||||
r.Get("/", app.Home)
|
||||
r.Get("/healthz", func(w http.ResponseWriter, _ *http.Request) {
|
||||
w.Header().Set("Content-Type", "text/plain")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
_, _ = w.Write([]byte("ok"))
|
||||
})
|
||||
r.Get("/login", app.LoginPage)
|
||||
r.Post("/login", app.LoginPost)
|
||||
r.Get("/logout", app.Logout)
|
||||
|
||||
Reference in New Issue
Block a user