aboutsummaryrefslogtreecommitdiff
path: root/service/transport.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/transport.go')
-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
}