mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 17:22:21 +00:00
27 lines
677 B
C#
27 lines
677 B
C#
using Api.Helpers;
|
|
using Asp.Versioning;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.Extensions.WebEncoders.Testing;
|
|
|
|
namespace Api.Controllers.v1
|
|
{
|
|
[Route("api/v{version:apiVersion}/[controller]")]
|
|
[ApiController]
|
|
[ApiVersion("1.0")]
|
|
public class ValuesController : ControllerBase
|
|
{
|
|
[AllowApiKey]
|
|
[HttpGet]
|
|
public async Task<IActionResult> Test([FromQuery] Guid allianceId, [FromQuery] string? key)
|
|
{
|
|
return Ok(new
|
|
{
|
|
AllianceId = allianceId,
|
|
Key = key
|
|
});
|
|
}
|
|
}
|
|
}
|