using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Net;
|
using System.Net.Http;
|
using System.Web.Http;
|
|
namespace ExportMap.Controllers
|
{
|
public class TerraController : ApiController
|
{
|
// http://localhost/ExportMap/terra/dem/layer.json
|
[Route("terra/{path}")]
|
[HttpGet]
|
public string GetLayerJson(string path)
|
{
|
return "layer.json";
|
}
|
|
// http://localhost/ExportMap/terra/dem/3/1/2.terrain
|
[Route("terra/{path}/{z}/{x}/{y}")]
|
[HttpGet]
|
public string GetTerrain(string path, int z, int x, int y)
|
{
|
return ".terrain";
|
}
|
|
/*[Route("api/order/{id:int=3}/ordertype")]
|
[HttpGet]
|
public IHttpActionResult GetById(int id)
|
{
|
return Ok<string>("Success" + id);
|
}
|
|
[AcceptVerbs("GET", "POST")]
|
public IHttpActionResult GetById(int id)
|
{
|
return Ok<string>("Success" + id);
|
}*/
|
}
|
}
|