Skip to content

Commit

Permalink
feat: changing endpoint and cleaning code
Browse files Browse the repository at this point in the history
  • Loading branch information
ext.joao.veloso committed Oct 27, 2023
1 parent f3a1189 commit b618f45
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/KafkaFlow.Retry.API/RetryRequestHandlerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,15 @@ protected RetryRequestHandlerBase(string endpointPrefix, string resource)
if (!string.IsNullOrEmpty(endpointPrefix))
{
this.path = this.path
.ExtendResourcePath(endpointPrefix)
.ExtendResourcePath(RetryResource)
.ExtendResourcePath(resource);

}
else
{
this.path = this.path
.ExtendResourcePath(RetryResource)
.ExtendResourcePath(resource);
.ExtendResourcePath(endpointPrefix);
}

this.path = this.path
.ExtendResourcePath(RetryResource)
.ExtendResourcePath(resource);
}




public virtual async Task<bool> HandleAsync(HttpRequest request, HttpResponse response)
{
if (!this.CanHandle(request))
Expand Down

0 comments on commit b618f45

Please sign in to comment.