diff --git a/Middleware/Authen.cs b/Middleware/Authen.cs index e2d87589..aca0d0bc 100644 --- a/Middleware/Authen.cs +++ b/Middleware/Authen.cs @@ -154,6 +154,7 @@ protected override Task HandleChallengeAsync(AuthenticationProperties properties if (value.ToString().ToLower() == "api") { Response.StatusCode = 401; + Response.Headers.Append("WWW-Authenticate", "Basic"); return Task.CompletedTask; } } diff --git a/Views/API/Index.cshtml b/Views/API/Index.cshtml index f817f1e4..3f2d369e 100644 --- a/Views/API/Index.cshtml +++ b/Views/API/Index.cshtml @@ -578,6 +578,20 @@ vehicleId - Id of Vehicle +
+
+ GET +
+
+ /api/calendar +
+
+ Returns reminder calendar in ICS format +
+
+ No Params +
+
POST