mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Set shortcodes in trigger response entities based on config or request URL (#1099)
* adding trigger short code injection * more annotation provider stuff * fixed up tests * Fix validator
This commit is contained in:
@@ -184,6 +184,7 @@ func SetUpAPINode(ctx context.Context) (*server.Server, error) {
|
||||
opts = append(opts, server.WithMQURL(getEnv(server.EnvMQURL, defaultMQ)))
|
||||
opts = append(opts, server.WithLogURL(""))
|
||||
opts = append(opts, server.WithLogstoreFromDatastore())
|
||||
opts = append(opts, server.WithTriggerAnnotator(server.NewStaticURLTriggerAnnotator("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