Skip to content

Commit

Permalink
Merge pull request #560 from dadosjusbr/redirecionando-api
Browse files Browse the repository at this point in the history
redirecionando a página inicial para "/doc"
  • Loading branch information
danielfireman committed Jul 3, 2023
2 parents d8f9dc9 + c15f3b5 commit 7b808c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ func main() {

e := echo.New()

e.GET("/", func(ctx echo.Context) error { return nil }) // necessário para checagem do beanstalk.
e.GET("/", func(ctx echo.Context) error {
return ctx.Redirect(http.StatusMovedPermanently, "/doc")
}) // necessário para checagem do beanstalk.

e.Use(middleware.StaticWithConfig(middleware.StaticConfig{
Root: "ui/dist/",
Expand Down

0 comments on commit 7b808c8

Please sign in to comment.