src/services/gateway/main.go
package main
import (
"github.com/kodflow/kitsune/src/internal/core/server/protocols/http"
"github.com/kodflow/kitsune/src/internal/kernel/daemon"
"github.com/kodflow/kitsune/src/services/gateway/endpoints"
)
func main() {
daemon.New().Start(&daemon.Handler{
Name: "HTTP Server",
Call: func() error {
server := http.NewServer(&http.ServerCfg{
HTTP: "80",
HTTPS: "443",
//DOMAIN: "aube.io",
//SUBS: []string{"home"},
})
server.Register(endpoints.ROOT)
return server.Start()
},
})
}