24 lines
476 B
C#
24 lines
476 B
C#
using System.Net;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace VSERVERWS.Controllers {
|
|
|
|
|
|
[Route("api/Generic/[action]")]
|
|
[ApiController]
|
|
public class GenericController : ControllerBase {
|
|
|
|
|
|
public static IPAddress IP = IPAddress.Parse("64.56.232.217");
|
|
|
|
|
|
[HttpGet]
|
|
public IActionResult IsAlive() {
|
|
return new JsonResult(new { STATUS = "CVRCO ONLINE", TIME = DateTime.Now });
|
|
}
|
|
|
|
}
|
|
}
|