Serve config file
This commit is contained in:
parent
5d481ed191
commit
bbcecae97c
2 changed files with 3 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
|||
i/
|
||||
static/js/config.js
|
||||
server
|
||||
server.conf
|
||||
config.js
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue