Got optional hot functions working for Lambda.

This commit is contained in:
Travis Reeder
2017-07-05 23:34:19 -07:00
parent 1f3218f8dd
commit 5ec0eadff8
6 changed files with 156 additions and 420 deletions

View File

@@ -162,6 +162,9 @@ func (s *Server) serve(ctx context.Context, c *gin.Context, appName string, rout
var stdout bytes.Buffer // TODO: should limit the size of this, error if gets too big. akin to: https://golang.org/pkg/io/#LimitReader
if route.Format == "" {
route.Format = "default"
}
envVars := map[string]string{
"METHOD": c.Request.Method,
"APP_NAME": appName,