diff --git a/.gitignore b/.gitignore index e0fb5b3..9a1027b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ i/ -static/js/config.js server server.conf +config.js diff --git a/server.go b/server.go index debaf89..4ef9b32 100644 --- a/server.go +++ b/server.go @@ -86,6 +86,8 @@ func makeDelkey(ident string) string { func index(w http.ResponseWriter, r *http.Request) { if r.URL.Path == "/" { http.ServeFile(w, r, "index.html") + } else if r.URL.Path == "/config.js" { + http.ServeFile(w, r, "config.js") } else { http.NotFound(w, r) }