unexport page

Former-commit-id: 1ba9608a9c
This commit is contained in:
Henrique Dias committed 2017-06-25 13:00:33 +01:00
1 parent 7b33975f7b
commit a4fe27a6d6
5 files changed
+98 -108

No files matched your search

+7 -9
View File
@@ -14,15 +14,13 @@ func serveSingle(w http.ResponseWriter, r *http.Request, c *FileManager, u *user
return errorToHTTP(err, true), err
}
p := &Page{
PageInfo: &PageInfo{
Name: i.Name,
Path: i.VirtualPath,
IsDir: false,
Data: i,
User: u,
Config: c,
},
p := &page{
Name: i.Name,
Path: i.VirtualPath,
IsDir: false,
Data: i,
User: u,
Config: c,
}
// If the request accepts JSON, we send the file information.