Skip to content

Commit

Permalink
embedr: intentionally break all routes for now
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Apr 13, 2024
1 parent c8d0853 commit ecadafb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bskyweb/cmd/embedr/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"context"
"errors"
"fmt"
"html/template"
"io/fs"
"net/http"
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit ecadafb

Please sign in to comment.