diff options
| -rw-r--r-- | roseh.moe.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roseh.moe.go b/roseh.moe.go index 42c854a..91b8ebd 100644 --- a/roseh.moe.go +++ b/roseh.moe.go @@ -49,6 +49,10 @@ func main() { http.HandleFunc("GET /{$}", s.index) http.HandleFunc("/cinema", s.cinema) http.HandleFunc("/cinema/", s.cinema) + http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + log.Printf("invalid path %#v", r) + http.Error(w, "not found", http.StatusNotFound) + }) addr := fmt.Sprintf(":%d", *port) log.Printf("Listening on %q", addr) |
