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 {
router := httprouter.New()
if config.Webserver.Api.NewNode {
api.NewNodes(config,router,"/api/nodess",nodes)
if config.Webserver.Api.NewNodes {
api.NewNodes(config,router,"/api/nodes",nodes)
log.Println("api nodes started")
}
if config.Webserver.Api.Aliases {

View File

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