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:
parent
db41a1bd13
commit
f9a43288a9
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user