using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Mvc;
|
using WIDESEA_Core;
|
using WIDESEA_IBasicService;
|
|
namespace WIDESEA_WMSServer.Controllers
|
{
|
[Route("api/WCS")]
|
[AllowAnonymous, ApiController]
|
public class WCSInterfaceController : Controller
|
{
|
private readonly ILocationInfoService _locationInfoService;
|
public WCSInterfaceController(ILocationInfoService locationInfoService)
|
{
|
_locationInfoService = locationInfoService;
|
}
|
[HttpPost, Route("GetPosition")]
|
public WebResponseContent GetPosition(string position)
|
{
|
return _locationInfoService.GetPosition(position);
|
}
|
}
|
}
|