api access controll

This commit is contained in:
Martin Geno 2016-05-17 11:07:14 +02:00
parent 5d59f8f11f
commit f2f383bdd0
2 changed files with 3 additions and 3 deletions

View File

@ -45,8 +45,8 @@ func main() {
if config.Webserver.Enable { if config.Webserver.Enable {
router := httprouter.New() router := httprouter.New()
if config.Webserver.Api.NewNode { if config.Webserver.Api.NewNodes {
api.NewNodes(config,router,"/api/nodess",nodes) api.NewNodes(config,router,"/api/nodes",nodes)
log.Println("api nodes started") log.Println("api nodes started")
} }
if config.Webserver.Api.Aliases { if config.Webserver.Api.Aliases {

View File

@ -22,7 +22,7 @@ type Config struct {
Webroot string `yaml:"webroot"` Webroot string `yaml:"webroot"`
Api struct { Api struct {
Passphrase string `yaml:"passphrase"` Passphrase string `yaml:"passphrase"`
NewNode bool `yaml:"newnode"` NewNodes bool `yaml:"newnodes"`
Aliases bool `yaml:"aliases"` Aliases bool `yaml:"aliases"`
} `yaml:"api"` } `yaml:"api"`
} `yaml:"webserver"` } `yaml:"webserver"`