2024-09-18 02:22:17 -04:00
|
|
|
//go:build js && wasm
|
|
|
|
|
// +build js,wasm
|
|
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/labstack/echo/v4"
|
2024-10-10 13:44:17 -04:00
|
|
|
"github.com/onsonr/sonr/cmd/motr/fetch"
|
2024-10-08 17:22:14 -04:00
|
|
|
"github.com/onsonr/sonr/internal/ctx"
|
2024-10-10 13:44:17 -04:00
|
|
|
"github.com/onsonr/sonr/workers/routes"
|
2024-09-18 02:22:17 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
e := echo.New()
|
2024-10-08 17:22:14 -04:00
|
|
|
e.Use(ctx.UseSession)
|
2024-10-10 13:44:17 -04:00
|
|
|
routes.RegisterClientViews(e)
|
|
|
|
|
routes.RegisterClientAPI(e)
|
|
|
|
|
fetch.Serve(e)
|
2024-09-18 02:22:17 -04:00
|
|
|
}
|