unexport page

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

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.