Update based on portbase review suggestions

This commit is contained in:
Daniel
2021-01-06 13:35:25 +01:00
parent 72c7592cdd
commit 60ac9af5f2
4 changed files with 12 additions and 12 deletions

View File

@@ -9,17 +9,17 @@ import (
func registerActions() error {
if err := api.RegisterEndpoint(api.Endpoint{
Path: "core/shutdown",
Read: api.PermitSelf,
ActionFn: shutdown,
Path: "core/shutdown",
Read: api.PermitSelf,
ActionFunc: shutdown,
}); err != nil {
return err
}
if err := api.RegisterEndpoint(api.Endpoint{
Path: "core/restart",
Read: api.PermitSelf,
ActionFn: restart,
Path: "core/restart",
Read: api.PermitSelf,
ActionFunc: restart,
}); err != nil {
return err
}