diff --git a/klice.go b/klice.go index 5d701cf..0f4bd96 100644 --- a/klice.go +++ b/klice.go @@ -346,6 +346,9 @@ func main() { http.HandleFunc("/admin/positions", AdminPositionsHandler) http.HandleFunc("/admin/qr", AdminQRHandler) + // static files + http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static")))) + fmt.Println("Server started at :8080") http.ListenAndServe(":8080", nil) } diff --git a/templates.go b/templates.go index 5128eb4..3afc5fd 100644 --- a/templates.go +++ b/templates.go @@ -48,7 +48,7 @@ type AdminRoutesTemplateS struct { type AdminCipherTemplateS struct { ID int - Assignment string + Assignment template.HTML Solution string Clue string }