From cd9306294d18d0b357fae3c1894b4f3f2d14c9c0 Mon Sep 17 00:00:00 2001 From: r Date: Fri, 31 Jan 2020 18:18:31 +0000 Subject: Add install target for make - Update default config path accordingly - Mention use of config file in README --- service/transport.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'service') diff --git a/service/transport.go b/service/transport.go index d945e18..02168e8 100644 --- a/service/transport.go +++ b/service/transport.go @@ -6,7 +6,6 @@ import ( "io" "mime/multipart" "net/http" - "path" "strconv" "time" @@ -595,7 +594,7 @@ func NewHandler(s Service, staticDir string) http.Handler { r.HandleFunc("/fluoride/retweet/{id}", fRetweet).Methods(http.MethodPost) r.HandleFunc("/fluoride/unretweet/{id}", fUnretweet).Methods(http.MethodPost) r.PathPrefix("/static").Handler(http.StripPrefix("/static", - http.FileServer(http.Dir(path.Join(".", staticDir))))) + http.FileServer(http.Dir(staticDir)))) return r } -- cgit v1.2.3