mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +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)
|
|
}
|