Added warning in code
This commit is contained in:
@@ -19,6 +19,8 @@ func main() {
|
||||
} else {
|
||||
fs = http.Dir(os.Getenv("SM_STATIC"))
|
||||
}
|
||||
// XXX: beware: I've copy/pasted this twice now and been confused because
|
||||
// I ought to have been using my own servemux
|
||||
http.Handle(
|
||||
"/",
|
||||
http.FileServer(fs),
|
||||
|
||||
Reference in New Issue
Block a user