Files
sonr/cmd/hway/main.go
T

19 lines
332 B
Go
Raw Normal View History

//go:build js && wasm
package main
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/internal/ctx"
2024-10-11 16:47:52 -04:00
"github.com/onsonr/sonr/pkg/workers/routes"
"github.com/syumai/workers"
)
func main() {
s := echo.New()
2024-10-11 16:47:52 -04:00
s.Use(ctx.SessionMiddleware)
routes.RegisterProxyViews(s)
routes.RegisterProxyAPI(s)
workers.Serve(s)
}