Fix Hello World HTTP sample

This commit is contained in:
Sipke Schoorstra 2021-03-31 14:46:06 +02:00
parent 013b5965d9
commit d9b0f01029

View file

@ -12,7 +12,10 @@ namespace Elsa.Samples.HelloWorldHttp
public void Build(IWorkflowBuilder builder)
{
builder
.HttpEndpoint("/hello")
.StartWith<HttpEndpoint>(httpEndpoint => httpEndpoint
.WithPath("/hello")
.WithMethod("GET")
)
.WriteHttpResponse(HttpStatusCode.OK, "Hello World!", "text/html");
}
}