From ecadafb3d8d0268a8b1eb78bb1f9248bdb1c6d9f Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Fri, 12 Apr 2024 19:23:26 -0700 Subject: [PATCH] embedr: intentionally break all routes for now --- bskyweb/cmd/embedr/server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bskyweb/cmd/embedr/server.go b/bskyweb/cmd/embedr/server.go index a5398300c4..8f20f73ac1 100644 --- a/bskyweb/cmd/embedr/server.go +++ b/bskyweb/cmd/embedr/server.go @@ -3,7 +3,6 @@ package main import ( "context" "errors" - "fmt" "html/template" "io/fs" "net/http" @@ -155,6 +154,7 @@ func serve(cctx *cli.Context) error { e.GET("/security.txt", func(c echo.Context) error { return c.Redirect(http.StatusMovedPermanently, "/.well-known/security.txt") }) + /* XXX: intentionally break all routes e.GET("/static/*", echo.WrapHandler(http.StripPrefix("/static/", staticHandler)), func(next echo.HandlerFunc) echo.HandlerFunc { return func(c echo.Context) error { path := c.Request().URL.Path @@ -177,6 +177,8 @@ func serve(cctx *cli.Context) error { e.GET("/embed.js", echo.WrapHandler(staticHandler)) e.GET("/oembed", server.WebOEmbed) e.GET("/embed/:did/app.bsky.feed.post/:rkey", server.WebPostEmbed) + */ + e.GET("/", server.WebHome) // Start the server. log.Infof("starting server address=%s", httpAddress)