feat: move gateway web code to dedicated directory

This commit is contained in:
Prad Nukala
2024-10-08 17:26:01 -04:00
parent 25cddbada6
commit 2970497683
9 changed files with 4 additions and 4 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/ctx"
"github.com/onsonr/sonr/pkg/nebula/routes"
"github.com/syumai/workers"
)
func main() {
s := echo.New()
s.Use(ctx.UseSession)
s.GET("/", routes.Home)
s.GET("/login", routes.LoginStart)
s.GET("/register", routes.RegisterStart)
workers.Serve(s)
}