aboutsummaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-01-31 18:18:31 +0000
committerr <r@freesoftwareextremist.com>2020-01-31 18:18:31 +0000
commitcd9306294d18d0b357fae3c1894b4f3f2d14c9c0 (patch)
tree925e8e10a0eb58ae689726a8bf6ffada949a16d3 /service
parenta981085260af2623bd4988e4b9c0052e2e3035eb (diff)
downloadbloat-cd9306294d18d0b357fae3c1894b4f3f2d14c9c0.tar.gz
bloat-cd9306294d18d0b357fae3c1894b4f3f2d14c9c0.zip
Add install target for make
- Update default config path accordingly - Mention use of config file in README
Diffstat (limited to 'service')
-rw-r--r--service/transport.go3
1 files changed, 1 insertions, 2 deletions
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
}