Commit 9e9e4267 by dliangx

update

parent 3d1511e4
......@@ -13,15 +13,15 @@ import (
)
func main() {
filename := "/Users/liang/Downloads/山西省村界.geojson"
geo.ProcessGeoJSONFile(filename)
//filename := "/Users/liang/Downloads/山西省村界.geojson"
// geo.ProcessGeoJSONFile(filename)
h := server.Default()
h.GET("/ping", func(ctx context.Context, c *app.RequestContext) {
c.JSON(consts.StatusOK, utils.H{"message": "pong"})
})
h.POST("/process-geojson", geo.HandleProcessGeoJSON)
h.POST("/geojson/process", geo.HandleProcessGeoJSON)
route.Register(h)
h.Spin()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment