From ed69e06ab90b8ff50cb81244375288c4893cd6e6 Mon Sep 17 00:00:00 2001 From: DTieman Date: Wed, 17 Apr 2024 08:29:51 +0000 Subject: [PATCH] Update Program.cs --- Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Program.cs b/Program.cs index fe48a95..a45afb6 100644 --- a/Program.cs +++ b/Program.cs @@ -12,6 +12,8 @@ services.AddScoped(); var app = builder.Build(); +app.UsePathBase("/api"); + // Configure the HTTP request pipeline. if (app.Environment.IsDevelopment()) { @@ -34,6 +36,7 @@ app.UseCors(policyBuilder => }); app.UseHttpsRedirection(); +app.UseRouting(); app.UseAuthorization(); app.MapControllers(); app.Run(); \ No newline at end of file