Backend: Code clean-up

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-03-09 01:13:32 +01:00
parent d08428b0d5
commit c1b08c8870
3 changed files with 3 additions and 3 deletions

View file

@ -2561,7 +2561,7 @@ paddlewheel:
see: boat
padlock:
see: lock
see: ignore
paintbrush:
see: ignore

View file

@ -4,7 +4,7 @@ import "fmt"
func PublishEntities(name, ev string, entities interface{}) {
SharedHub().Publish(Message{
Name: fmt.Sprintf("%s.%s", name, ev),
Name: fmt.Sprintf("%s.%s", name, ev),
Fields: Data{
"entities": entities,
},

View file

@ -23,7 +23,7 @@ func WebDAV(path string, router *gin.RouterGroup, conf *config.Config) {
f := webdav.Dir(path)
srv := &webdav.Handler{
Prefix: router.BasePath(),
Prefix: router.BasePath(),
FileSystem: f,
LockSystem: webdav.NewMemLS(),
Logger: func(r *http.Request, err error) {