mirror of
https://github.com/TbT480jcspy/Iris-Rec-2023-Server-Code.git
synced 2026-09-08 14:41:24 -07:00
MOVEMENT
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Primitives;
|
||||
|
||||
namespace ir23.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class versioncheckController : ControllerBase
|
||||
{
|
||||
[HttpGet("v4")]
|
||||
public IActionResult checkversion([FromQuery] string v)
|
||||
{
|
||||
if (v == "20230331")
|
||||
{
|
||||
return Ok(new
|
||||
{
|
||||
VersionStatus = 0
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
return Ok(new
|
||||
{
|
||||
VersionStatus = 1
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user