mirror of
https://github.com/TbT480jcspy/Deluxe-2023-Server-Code.git
synced 2026-09-08 14:41:26 -07:00
32 lines
845 B
C#
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);
|
|
}
|
|
}
|
|
}
|