From 1ac8730391ab192491876f66ec9a6b0ed5ef9d2c Mon Sep 17 00:00:00 2001 From: James Gunn Date: Wed, 20 Sep 2023 11:01:18 +0100 Subject: [PATCH] Remove final remnant of read only mode --- .../src/TeachingRecordSystem.Api/Program.cs | 7 ------- 1 file changed, 7 deletions(-) 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();