mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
21 lines
378 B
Go
21 lines
378 B
Go
//go:build js && wasm
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"github.com/onsonr/sonr/internal/session"
|
|
"github.com/onsonr/sonr/pkg/nebula/routes"
|
|
"github.com/syumai/workers"
|
|
)
|
|
|
|
func main() {
|
|
s := echo.New()
|
|
s.Use(session.UseSession)
|
|
|
|
s.GET("/", routes.Home)
|
|
s.GET("/login", routes.LoginStart)
|
|
s.GET("/register", routes.RegisterStart)
|
|
workers.Serve(s)
|
|
}
|