summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'http.go')
-rw-r--r--http.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/http.go b/http.go
index f07c495..4d9a5d6 100644
--- a/http.go
+++ b/http.go
@@ -139,6 +139,11 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
return
}
+ if strings.HasPrefix(route, "/patches/") {
+ handlePatches(w, r)
+ return
+ }
+
if route == "/goReference.svg" {
w.Header().Set("Content-Type", "image/svg+xml")
writeFile(w, "goReference.svg")