28 lines
832 B
C#
28 lines
832 B
C#
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using static DeluxeBackend.Controllers.Api.AvatarController;
|
|
|
|
namespace DeluxeBackend.Controllers.Api
|
|
{
|
|
[Route("api/players")]
|
|
[ApiController]
|
|
public class PlayersController : ControllerBase
|
|
{
|
|
[HttpGet("v2/progression/bulk")]
|
|
public async Task<IActionResult> ProgressionBulk([FromQuery(Name = "id")] List<long> accountIds)
|
|
{
|
|
List<Dictionary<string, object>> reputations = [];
|
|
foreach (long item in accountIds)
|
|
{
|
|
reputations.Add(new Dictionary<string, object>
|
|
{
|
|
["PlayerId"] = item,
|
|
["Level"] = 1,
|
|
["XP"] = 0
|
|
});
|
|
}
|
|
return Ok(reputations);
|
|
}
|
|
}
|
|
}
|