24 lines
500 B
C#
24 lines
500 B
C#
|
|
using BLWLogProduce.Services;
|
|||
|
|
using Microsoft.AspNetCore.Http;
|
|||
|
|
using Microsoft.AspNetCore.Mvc;
|
|||
|
|
|
|||
|
|
namespace BLWLogProduce.Controllers
|
|||
|
|
{
|
|||
|
|
[Route("api/[controller]/[action]")]
|
|||
|
|
[ApiController]
|
|||
|
|
public class HeartBeatController : ControllerBase
|
|||
|
|
{
|
|||
|
|
[HttpPost()]
|
|||
|
|
public string Heart()
|
|||
|
|
{
|
|||
|
|
return "hello";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[HttpPost()]
|
|||
|
|
public string getlocation(string ip)
|
|||
|
|
{
|
|||
|
|
return KafkaProduce.GetBaiduIp(ip);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|