Fns now annotated with invoke urls, as per triggers (#1172)

Clone of the trigger work to inject invoke urls into the annotations
on a fn when it is returned from the server.

Small changes to trigges code following code review of the fn code.
This commit is contained in:
Tom Coupland
2018-08-16 09:44:48 +01:00
committed by GitHub
parent d5f06bc5b1
commit b1938c1cbf
12 changed files with 348 additions and 5 deletions

View File

@@ -2,9 +2,10 @@ package server
import (
"fmt"
"net/http"
"github.com/fnproject/fn/api"
"github.com/gin-gonic/gin"
"net/http"
)
func (s *Server) handleTriggerGet(c *gin.Context) {
@@ -20,6 +21,7 @@ func (s *Server) handleTriggerGet(c *gin.Context) {
if err != nil {
handleErrorResponse(c, fmt.Errorf("unexpected error - trigger app not available: %s", err))
return
}
trigger, err = s.triggerAnnotator.AnnotateTrigger(c, app, trigger)