1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-13 20:21:22 +01:00

collect events in bulk

This commit is contained in:
Kyle Spearrin 2019-07-03 12:11:40 -04:00
parent db41a1bd13
commit f9a43288a9

View File

@ -30,20 +30,7 @@ namespace Bit.Events.Controllers
}
[HttpPost]
public async Task<IActionResult> Post([FromBody]EventModel model)
{
if(await LogEventAsync(model))
{
return new OkResult();
}
else
{
return new BadRequestResult();
}
}
[HttpPost("many")]
public async Task<IActionResult> PostMany([FromBody]IEnumerable<EventModel> model)
public async Task<IActionResult> Post([FromBody]IEnumerable<EventModel> model)
{
if(model == null || !model.Any())
{