mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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:
@@ -186,6 +186,7 @@ func SetUpAPINode(ctx context.Context) (*server.Server, error) {
|
||||
opts = append(opts, server.WithLogURL(""))
|
||||
opts = append(opts, server.WithLogstoreFromDatastore())
|
||||
opts = append(opts, server.WithTriggerAnnotator(server.NewStaticURLTriggerAnnotator("http://localhost:8081")))
|
||||
opts = append(opts, server.WithFnAnnotator(server.NewStaticURLFnAnnotator("http://localhost:8081")))
|
||||
opts = append(opts, server.EnableShutdownEndpoint(ctx, func() {})) // TODO: do it properly
|
||||
return server.New(ctx, opts...), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user