Serve config file

This commit is contained in:
Keith 2015-06-23 19:19:59 -04:00
parent 5d481ed191
commit bbcecae97c
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,4 +1,4 @@
i/
static/js/config.js
server
server.conf
config.js

View file

@ -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)
}