hello
This commit is contained in:
3
setup.go
3
setup.go
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
@@ -94,6 +95,8 @@ func parse(c *caddy.Controller, root string) (*Config, *filemanager.FileManager,
|
||||
cfg.Public = strings.Replace(root, "./", "", -1)
|
||||
cfg.BaseURL = "/admin"
|
||||
cfg.Root = "./"
|
||||
cfg.BeforePublish = func(r *http.Request, c *config.Config, u *config.User) error { return nil }
|
||||
cfg.AfterPublish = func(r *http.Request, c *config.Config, u *config.User) error { return nil }
|
||||
|
||||
args := c.RemainingArgs()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user