add comments and unexport some fields
Former-commit-id: fffbcc7098e7eab38351dc7e202983f4749a74eb
This commit is contained in:
@@ -8,13 +8,13 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// AssetsURL is the url of the assets
|
||||
const AssetsURL = "/_internal"
|
||||
// assetsURL is the url where static assets are served.
|
||||
const assetsURL = "/_internal"
|
||||
|
||||
// Serve provides the needed assets for the front-end
|
||||
func serveAssets(w http.ResponseWriter, r *http.Request, m *FileManager) (int, error) {
|
||||
// gets the filename to be used with Assets function
|
||||
filename := strings.Replace(r.URL.Path, m.baseURL+AssetsURL, "", 1)
|
||||
filename := strings.Replace(r.URL.Path, m.baseURL+assetsURL, "", 1)
|
||||
|
||||
var file []byte
|
||||
var err error
|
||||
|
||||
Reference in New Issue
Block a user