add comments and unexport some fields

Former-commit-id: fffbcc7098e7eab38351dc7e202983f4749a74eb
This commit is contained in:
Henrique Dias
2017-06-25 14:24:26 +01:00
parent 475a07671d
commit 99d99843b7
8 changed files with 94 additions and 76 deletions

View File

@@ -26,7 +26,7 @@ func (c *FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, er
// Checks if the URL matches the Assets URL. Returns the asset if the
// method is GET and Status Forbidden otherwise.
if matchURL(r.URL.Path, c.baseURL+AssetsURL) {
if matchURL(r.URL.Path, c.baseURL+assetsURL) {
if r.Method == http.MethodGet {
return serveAssets(w, r, c)
}