Improve api endpoint registration

This commit is contained in:
Daniel
2021-11-23 13:00:55 +01:00
parent 0f08918bbd
commit 46791ee34c
2 changed files with 5 additions and 5 deletions

View File

@@ -22,6 +22,10 @@ func init() {
}
func prep() error {
if err := registerAPIEndpoints(); err != nil {
return err
}
if err := prepOnlineStatus(); err != nil {
return err
}
@@ -30,10 +34,6 @@ func prep() error {
}
func start() error {
if err := registerAPIEndpoints(); err != nil {
return err
}
module.StartServiceWorker(
"monitor network changes",
0,