feat: integrate nebula UI with worker-assets-gen

This commit is contained in:
Prad Nukala
2024-10-07 21:15:25 -04:00
parent e926e5b9d6
commit af6e07323b
22 changed files with 114 additions and 101 deletions
+20
View File
@@ -0,0 +1,20 @@
//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)
}