MapSubscribers fix per Ryan's review

Signed-off-by: Paul Yuknewicz <paulyuk@microsoft.com>
This commit is contained in:
Paul Yuknewicz 2022-02-02 08:29:48 -08:00 committed by Artur Souza
parent 1622e11207
commit 17cbaedf71
1 changed files with 1 additions and 2 deletions

View File

@ -9,8 +9,7 @@ var app = builder.Build();
app.UseCloudEvents();
// needed for Dapr pub/sub routing
app.UseRouting();
app.UseEndpoints(endpoints =>{endpoints.MapSubscribeHandler();});
app.MapSubscribeHandler();
if (app.Environment.IsDevelopment()) {app.UseDeveloperExceptionPage();}