| | |
| | | // Web API routes |
| | | config.MapHttpAttributeRoutes(); |
| | | |
| | | //config.Routes.MapHttpRoute( |
| | | // name: "TerraApi", |
| | | // routeTemplate: "{controller}/3d/terrain", |
| | | // defaults: new { controller = "Terra" } |
| | | //); |
| | | |
| | | config.Routes.MapHttpRoute( |
| | | name: "FloatServer", |
| | | routeTemplate: "floatserver/checkout/{action}/{id}", |
对比新文件 |
| | |
| | | 锘縰sing System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Net; |
| | | using System.Net.Http; |
| | | using System.Web.Http; |
| | | |
| | | namespace ExportMap.Controllers |
| | | { |
| | | //[RoutePrefix("3d/terrain")] |
| | | public class TerraController : ApiController |
| | | { |
| | | [Route("{path}/layer.json")] |
| | | [HttpGet] |
| | | public string GetLayer(string path) |
| | | { |
| | | return "layer.json"; |
| | | } |
| | | } |
| | | } |
| | |
| | | <Compile Include="Controllers\ExportController.cs" /> |
| | | <Compile Include="Controllers\FloatServerController.cs" /> |
| | | <Compile Include="Controllers\licenseEncryptionController.cs" /> |
| | | <Compile Include="Controllers\TerraController.cs" /> |
| | | <Compile Include="cs\CacheUtils.cs" /> |
| | | <Compile Include="cs\ConvertUtils.cs" /> |
| | | <Compile Include="cs\CustomMultipartFormDataStreamProvider.cs" /> |