|
@@ -73,9 +73,9 @@ func main() {
|
|
|
api1 := router.Group(infra.ApplicationYaml.Web.RoutePrefix)
|
|
|
api1.POST("/start-project", handler.StartProject)
|
|
|
api2 := router.Group("/simulation/resource/scheduler")
|
|
|
- api2.POST("/confirm", handler.Confirm)
|
|
|
- api2.POST("/tick", handler.Tick)
|
|
|
- api2.POST("/state", handler.State)
|
|
|
+ api2.GET("/confirm", handler.Confirm)
|
|
|
+ api2.GET("/tick", handler.Tick)
|
|
|
+ api2.GET("/state", handler.State)
|
|
|
err := router.Run(":" + infra.ApplicationYaml.Web.Port)
|
|
|
if err != nil {
|
|
|
infra.GlobalLogger.Error("程序崩溃,监听端口 " + util.ToString(infra.ApplicationYaml.Web.Port) + " 失败。")
|