Files
Deluxe-2023-Server-Code/Controllers/playersController.cs
T
Exception 1f113298e0 Movement
2026-05-09 14:31:53 -04:00

32 lines
845 B
C#

using DeluxeNET.Data;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace DeluxeNET.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class playersController : ControllerBase
{
private readonly AppDbContext _db;
public playersController(AppDbContext db)
{
_db = db;
}
[HttpGet("v2/progression/bulk")]
public async Task<IActionResult> getprogressBulk([FromQuery] List<long> id)
{
var progressions = await _db.Progressions
.Where(x => id.Contains(x.Id))
.ToListAsync();
return Ok(progressions);
}
}
}