mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
collect events in bulk
This commit is contained in:
@ -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())
|
||||
{
|
||||
|
Reference in New Issue
Block a user