Add install target for make

- Update default config path accordingly
- Mention use of config file in README
This commit is contained in:
r 2020-01-31 18:18:31 +00:00
parent a981085260
commit cd9306294d
4 changed files with 29 additions and 9 deletions

View file

@ -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
}