mirror of
https://github.com/mpolden/echoip.git
synced 2025-07-13 20:45:25 +02:00
Serve assets
This commit is contained in:
@ -51,6 +51,8 @@ func handler(w http.ResponseWriter, req *http.Request) {
|
||||
}
|
||||
|
||||
func main() {
|
||||
http.Handle("/assets/", http.StripPrefix("/assets/",
|
||||
http.FileServer(http.Dir("assets/"))))
|
||||
http.HandleFunc("/", handler)
|
||||
err := http.ListenAndServe(":8080", nil)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user