Skip to content

Commit 0d00def

Browse files
authored
Merge pull request #54 from rubberduck-vba/webhook
add FromBody attribute?
2 parents 84aa828 + 3f830d1 commit 0d00def

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rubberduckvba.Server/Api/Admin/WebhookController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public WebhookController(
2222

2323
[Authorize("webhook")]
2424
[HttpPost("webhook/github")]
25-
public async Task<IActionResult> GitHub(dynamic body)
25+
public async Task<IActionResult> GitHub([FromBody] dynamic body)
2626
{
2727
//var reader = new StreamReader(Request.Body);
2828
//var json = await reader.ReadToEndAsync();

0 commit comments

Comments
 (0)