diff --git a/router/router.go b/router/router.go index e1f4cc7..ba21af8 100644 --- a/router/router.go +++ b/router/router.go @@ -1,6 +1,7 @@ package router import ( + "fmt" "net/http" "os" @@ -12,6 +13,10 @@ func SetRouting() { e.GET("/ping", func(c echo.Context) error { return c.String(http.StatusOK, "pong") }) + e.GET("/echo", func(c echo.Context) error { + header := fmt.Sprintf("%#v", c.Request().Header) + return c.String(http.StatusOK, header) + }) port := os.Getenv("PORT") if port == "" { diff --git a/showcase.yaml b/showcase.yaml index 74c39ab..3b91099 100644 --- a/showcase.yaml +++ b/showcase.yaml @@ -8,7 +8,7 @@ entrypoint: ./main http_proxy: 3000 https: hard - +internal: soft # cname: # TODO