diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Api/Program.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Api/Program.cs index 1d44d49f5..9a8c1bce8 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.Api/Program.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Api/Program.cs @@ -307,13 +307,6 @@ public static void Main(string[] args) await context.Response.WriteAsync("OK"); }); - app.MapGet("/_readonlymode", async context => - { - var configuration = context.RequestServices.GetRequiredService(); - var readOnlyMode = configuration.GetValue("ReadOnlyMode"); - await context.Response.WriteAsync(readOnlyMode.ToString()); - }); - app.MapWebHookEndpoints(); app.MapControllers();