missing routers

This commit is contained in:
Pedro Nasser
2016-07-21 16:09:21 -03:00
parent 66fa3d4035
commit 154fd82b68
15 changed files with 379 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
package router
import (
"net/http"
"github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/iron-io/functions/api/runner"
)
func handleRunner(c *gin.Context) {
log := c.MustGet("log").(logrus.FieldLogger)
err := runner.Run(c)
if err != nil {
log.Debug(err)
c.JSON(http.StatusInternalServerError, simpleError(err))
}
}