Update to latest packages and show examples
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System.Diagnostics;
|
||||
using GerstITS.Examples.Api.Endpoints;
|
||||
using GerstITS.Examples.Api.ExceptionHandling;
|
||||
using GerstITS.Web.Api;
|
||||
using GerstITS.Web.Api.Hosting;
|
||||
using GerstITS.Web.Api.Swagger;
|
||||
@@ -23,6 +25,7 @@ public class Program
|
||||
.Services()
|
||||
.Build()
|
||||
.IfProduction(app => app.UsePreconfiguredHsts())
|
||||
.UseGlobalExceptionHandling()
|
||||
.IfDevelopment(app => app.UseDeveloperExceptionPage()
|
||||
.UsePreconfiguredSwagger())
|
||||
.UsePreconfiguredCors()
|
||||
@@ -32,7 +35,11 @@ public class Program
|
||||
.UseAuthorization()
|
||||
.UseRouting()
|
||||
.UseSession()
|
||||
.UseEndpoints(endpoints => endpoints.MapControllers())
|
||||
.UseEndpoints(endpoints =>
|
||||
{
|
||||
endpoints.MapControllers();
|
||||
endpoints.MapEndpoints();
|
||||
})
|
||||
.UseRewriteUnknownPathsToIndexSite(ApplicationEnvironment.WebApi.BaseUrl)
|
||||
.UseSystemIndependentStaticFiles()
|
||||
.UseSerilogRequestLogging()
|
||||
|
||||
Reference in New Issue
Block a user