new file and dir (no buttons tho)

This commit is contained in:
Henrique Dias
2017-06-29 18:55:16 +01:00
parent 98a92a3da0
commit 6626398cdf
9 changed files with 292 additions and 198 deletions

View File

@@ -106,8 +106,8 @@ func New(scope string) *FileManager {
Users: map[string]*User{},
BeforeSave: func(r *http.Request, m *FileManager, u *User) error { return nil },
AfterSave: func(r *http.Request, m *FileManager, u *User) error { return nil },
static: http.FileServer(rice.MustFindBox("./_assets/dist_build/_").HTTPBox()),
templates: rice.MustFindBox("./_assets/dist_build/templates"),
static: http.FileServer(rice.MustFindBox("./_assets/dist_dev/_").HTTPBox()),
templates: rice.MustFindBox("./_assets/dist_dev/templates"),
}
m.SetScope(scope, "")