mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fixes async payload passing for #68.
This commit is contained in:
@@ -36,6 +36,8 @@ func (s *Server) handleRouteUpdate(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// fmt.Printf("ROUTE BOUND: %+v", *wroute.Route)
|
||||
|
||||
wroute.Route.AppName = c.MustGet(api.AppName).(string)
|
||||
wroute.Route.Path = path.Clean(c.MustGet(api.Path).(string))
|
||||
|
||||
@@ -69,7 +71,7 @@ func (s *Server) handleRouteUpdate(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
s.cacherefresh(route)
|
||||
s.cacheRefresh(route)
|
||||
|
||||
c.JSON(http.StatusOK, routeResponse{"Route successfully updated", route})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user