Add remaining project files
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user