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
BIN
View File
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
{
"name": "@onsonr/sonr.id",
"version": "0.0.2",
"scripts": {},
"dependencies": {}
}
+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)
}
+6
View File
@@ -0,0 +1,6 @@
name = "sonr-id"
main = "./build/worker.mjs"
compatibility_date = "2024-10-07"
[build]
command = "devbox run build:hway"