Files
sonr/cmd/gateway/main.go
T

20 lines
345 B
Go
Raw Normal View History

//go:build js && wasm
package main
import (
"github.com/labstack/echo/v4"
"github.com/syumai/workers"
"github.com/onsonr/sonr/pkg/common/ctx"
"github.com/onsonr/sonr/pkg/hway/routes"
)
func main() {
s := echo.New()
s.Use(ctx.HighwaySessionMiddleware)
routes.RegisterGatewayViews(s)
routes.RegisterGatewayViews(s)
workers.Serve(s)
}