add get planet data

This commit is contained in:
arnaucube
2019-06-15 21:04:46 +02:00
parent 513836c4c7
commit 3bac070c04
5 changed files with 43 additions and 8 deletions

View File

@@ -96,6 +96,7 @@ func newApiService() *gin.Engine {
api.GET("/", handleGetUser)
api.GET("/resources", handleGetResources)
api.GET("/planets", handleGetUserPlanets)
api.GET("/planets/:planetid", handleGetPlanet)
api.POST("/buildings", handlePostUpgradeBuilding)
}
return api