Fix Hello World HTTP sample
This commit is contained in:
parent
013b5965d9
commit
d9b0f01029
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue