diff --git a/rubberduckvba.Server/Api/Admin/WebhookController.cs b/rubberduckvba.Server/Api/Admin/WebhookController.cs index 42c287c..f8555ab 100644 --- a/rubberduckvba.Server/Api/Admin/WebhookController.cs +++ b/rubberduckvba.Server/Api/Admin/WebhookController.cs @@ -22,10 +22,11 @@ public WebhookController( [Authorize("webhook")] [HttpPost("webhook/github")] - public async Task GitHub() + public async Task GitHub(dynamic body) { - var reader = new StreamReader(Request.Body); - var json = await reader.ReadToEndAsync(); + //var reader = new StreamReader(Request.Body); + //var json = await reader.ReadToEndAsync(); + string json = body.ToString(); var payload = JsonSerializer.Deserialize(json, new JsonSerializerOptions { PropertyNameCaseInsensitive = true }) ?? throw new InvalidOperationException("Could not deserialize payload"); diff --git a/rubberduckvba.Server/Api/Tags/TagsController.cs b/rubberduckvba.Server/Api/Tags/TagsController.cs index 7f9ce43..13ef731 100644 --- a/rubberduckvba.Server/Api/Tags/TagsController.cs +++ b/rubberduckvba.Server/Api/Tags/TagsController.cs @@ -21,6 +21,7 @@ public TagsController(CacheService cache, IRubberduckDbService db, ILogger /// Gets information about the latest release tags. /// + [HttpGet("api/v1/public/tags")] // legacy route [HttpGet("tags/latest")] [AllowAnonymous] public IActionResult Latest()