Skip to content

Commit

Permalink
Added /e_ to compare old behaviours.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Sep 6, 2021
1 parent 1931a2f commit 84df5e0
Show file tree
Hide file tree
Showing 2 changed files with 939 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func (s *Server) setup() error {
func (s *Server) routes() {
s.echo.GET("/", s.indexHandler)
s.echo.GET("/e", s.effectHandler)
s.echo.GET("/e_", s.effectHandler_)
s.echo.POST("/e", s.saveHandler)
s.echo.GET("/item/:id", s.itemHandler)

Expand Down Expand Up @@ -297,6 +298,10 @@ func (s *Server) effectHandler(c echo.Context) error {
return c.File("./static/index.html")
}

func (s *Server) effectHandler_(c echo.Context) error {
return c.File("./static/index_.html")
}

type itemResponse struct {
Code string `json:"code"`
User string `json:"user"`
Expand Down
Loading

0 comments on commit 84df5e0

Please sign in to comment.