small bug fixes

This commit is contained in:
Henrique Dias
2016-08-22 12:24:26 +01:00
parent 1df11145a8
commit de984c3037
3 changed files with 29 additions and 6 deletions

View File

@@ -8,15 +8,26 @@
This package is a plugin for Caddy server that provides an online file manager (based on browse middleware) that is able to: rename files, delete files and upload files. Some new features that can be implemented in the future can be seen at [issues](https://github.com/hacdias/caddy-filemanager/issues).
### Syntax
```
filemanager {
show path
on url
styles filepath
frontmatter type
filemanager url {
show path
styles filepath
frontmatter type
allow_new [true|false]
allow_edit [true|false]
allow_commands [true|false]
allow_command command
block_command command
allow [path|dotfiles]
allow_r path regex
block [path|dotfiles]
block_r path regex
}
```
## NOTE FOR DEVELOPERS
You need to run `go generate` on `$GOPATH/src/github.com/hacdias/caddy-filemanager` before building any binary. Otherwise, you will receive an `undefined: Asset` error.