wip: migrate to mono-repo. SPN has already been moved to spn/
This commit is contained in:
32
service/sync/module.go
Normal file
32
service/sync/module.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package sync
|
||||
|
||||
import (
|
||||
"github.com/safing/portbase/database"
|
||||
"github.com/safing/portbase/modules"
|
||||
)
|
||||
|
||||
var (
|
||||
module *modules.Module
|
||||
|
||||
db = database.NewInterface(&database.Options{
|
||||
Local: true,
|
||||
Internal: true,
|
||||
})
|
||||
)
|
||||
|
||||
func init() {
|
||||
module = modules.Register("sync", prep, nil, nil, "profiles")
|
||||
}
|
||||
|
||||
func prep() error {
|
||||
if err := registerSettingsAPI(); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := registerSingleSettingAPI(); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := registerProfileAPI(); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user