diff --git a/main.go b/main.go index ecca080..9070e0f 100644 --- a/main.go +++ b/main.go @@ -10,13 +10,20 @@ var view *template.Template func startpage(w http.ResponseWriter, r *http.Request){ view.ExecuteTemplate(w, "index.html", nil) } - +func klientpage(w http.ResponseWriter, r *http.Request){ + view.ExecuteTemplate(w, "panelklient.html", nil) +} +func wlaspage(w http.ResponseWriter, r *http.Request){ + view.ExecuteTemplate(w, "panelwlas.html", nil) +} func main() { view = template.Must(template.ParseGlob("templates/*.html")) http.Handle("/appearance/", http.StripPrefix("/appearance/", http.FileServer(http.Dir("appearance")))) http.HandleFunc("/", startpage) + http.HandleFunc("/panelklient", klientpage) + http.HandleFunc("/panelwlas", wlaspage) http.ListenAndServe(":8888", nil) } diff --git a/templates/index.html b/templates/index.html index e69de29..f9ecdfa 100644 --- a/templates/index.html +++ b/templates/index.html @@ -0,0 +1,20 @@ + + +
+ + + + + +