mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
22 lines
253 B
Go
22 lines
253 B
Go
package api
|
|
|
|
import (
|
|
"github.com/Safing/portbase/modules"
|
|
)
|
|
|
|
func init() {
|
|
modules.Register("api", prep, start, stop, "database")
|
|
}
|
|
|
|
func prep() error {
|
|
return nil
|
|
}
|
|
|
|
func start() error {
|
|
go Serve()
|
|
return nil
|
|
}
|
|
|
|
func stop() error {
|
|
return nil
|
|
}
|