diff options
Diffstat (limited to 'srv/src/api/api.go')
-rw-r--r-- | srv/src/api/api.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/srv/src/api/api.go b/srv/src/api/api.go index ab2bca5..a6fc779 100644 --- a/srv/src/api/api.go +++ b/srv/src/api/api.go @@ -212,7 +212,9 @@ func (a *api) handler() http.Handler { { v2Mux := http.NewServeMux() v2Mux.Handle("/follow.html", a.renderDumbTplHandler("follow.html")) - v2Mux.Handle("/posts/", a.renderPostHandler()) + v2Mux.Handle("/posts/", http.StripPrefix("/posts", + a.renderPostHandler(), + )) v2Mux.Handle("/assets/", http.StripPrefix("/assets", apiutil.MethodMux(map[string]http.Handler{ "GET": a.getPostAssetHandler(), |