mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-03 20:12:59 +00:00
d
This commit is contained in:
@@ -109,14 +109,14 @@ func main() {
|
|||||||
}
|
}
|
||||||
}).Methods("GET")
|
}).Methods("GET")
|
||||||
|
|
||||||
// Static file server for public files - must be the last route defined
|
|
||||||
fs := http.FileServer(http.Dir("."))
|
|
||||||
r.PathPrefix("/").Handler(fs)
|
|
||||||
|
|
||||||
// Public route for evidence-aut.html
|
// Public route for evidence-aut.html
|
||||||
r.HandleFunc("/evidence-aut", func(w http.ResponseWriter, r *http.Request) {
|
r.HandleFunc("/evidence-aut", func(w http.ResponseWriter, r *http.Request) {
|
||||||
http.ServeFile(w, r, "evidence-aut.html")
|
http.ServeFile(w, r, "evidence-aut.html")
|
||||||
}).Methods("GET")
|
}).Methods("GET")
|
||||||
|
|
||||||
|
// Static file server for public files - must be the last route defined
|
||||||
|
fs := http.FileServer(http.Dir("."))
|
||||||
|
r.PathPrefix("/").Handler(fs)
|
||||||
|
|
||||||
r.HandleFunc("/kontakt", func(w http.ResponseWriter, r *http.Request) {
|
r.HandleFunc("/kontakt", func(w http.ResponseWriter, r *http.Request) {
|
||||||
// Check if kontakt service is already running
|
// Check if kontakt service is already running
|
||||||
|
|||||||
Reference in New Issue
Block a user