mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
- **feat: remove Hway deployment** - **feat: introduce session middleware for requests** - **refactor: update path imports to use new pkg folder** - **feat: add gRPC client for interacting with services** - **feat: remove grpc client and use REST api** - **refactor: move from to** - **feat: add client views endpoint** - **feat: add webauthn support** - **closes: #1124** - **refactor: Improve PR labeler configuration** - **feat: add milestone discussion template** - **feat: remove OKR tracking issue template** - **feat: use gorilla sessions for session management** - **refactor: move pubkey related code to** - **<no value>** - **refactor: remove unused identifier type** - **feat: integrate Macaroon Keeper with Service Module** - **refactor: rename worker routes for clarity**
19 lines
332 B
Go
19 lines
332 B
Go
//go:build js && wasm
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"github.com/onsonr/sonr/internal/ctx"
|
|
"github.com/onsonr/sonr/pkg/workers/routes"
|
|
"github.com/syumai/workers"
|
|
)
|
|
|
|
func main() {
|
|
s := echo.New()
|
|
s.Use(ctx.SessionMiddleware)
|
|
routes.RegisterProxyViews(s)
|
|
routes.RegisterProxyAPI(s)
|
|
workers.Serve(s)
|
|
}
|