feat: nebula assets served from CDN

This commit is contained in:
Prad Nukala
2024-10-09 14:15:05 -04:00
parent 5df9d4a3e5
commit 58a02be5cf
9 changed files with 54 additions and 65 deletions
+2
View File
@@ -5,6 +5,7 @@ package main
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/internal/ctx"
"github.com/onsonr/sonr/pkg/nebula"
"github.com/onsonr/sonr/pkg/nebula/routes"
"github.com/syumai/workers"
)
@@ -12,6 +13,7 @@ import (
func main() {
s := echo.New()
s.Use(ctx.UseSession)
nebula.UseAssets(s)
s.GET("/", routes.Home)
s.GET("/login", routes.LoginStart)
s.GET("/register", routes.RegisterStart)