wip: migrate to mono-repo. SPN has already been moved to spn/

This commit is contained in:
Patrick Pacher
2024-03-15 11:55:13 +01:00
parent b30fd00ccf
commit 8579430db9
577 changed files with 35981 additions and 818 deletions

34
service/process/module.go Normal file
View File

@@ -0,0 +1,34 @@
package process
import (
"os"
"github.com/safing/portbase/modules"
"github.com/safing/portmaster/service/updates"
)
var (
module *modules.Module
updatesPath string
)
func init() {
module = modules.Register("processes", prep, start, nil, "profiles", "updates")
}
func prep() error {
return registerConfiguration()
}
func start() error {
updatesPath = updates.RootPath()
if updatesPath != "" {
updatesPath += string(os.PathSeparator)
}
if err := registerAPIEndpoints(); err != nil {
return err
}
return nil
}