You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
760 B
Go

package router
import (
"autogo/controllers"
"autogo/device"
"autogo/monkey"
"github.com/gin-gonic/gin"
)
func setRouteV2(r *gin.Engine) {
r.POST("/api/monkey/v2/create_task", monkey.CreateTaskV2)
r.POST("/api/monkey/v2/task/handle/set", monkey.UpdateHandleStatus)
r.GET("/api/monkey/v2/task/command", monkey.GetTaskCommand)
r.POST("/api/monkey/v2/task/store_anomaly", monkey.StoreMonkeyAnomaly)
r.GET("/api/monkey/v2/task/get_anomalies", monkey.GetMonkeyAnomaliesByTaskId)
r.GET("/api/setting/v2/get_bugly_token", controllers.GetBuglyToken)
r.POST("/api/setting/v2/update_bugly_token", controllers.UpdateBuglyToken)
r.POST("/api/device/v2/create", device.CreateDeviceV2)
r.POST("/api/device/v2/update_status", device.UpdateDeviceStatusV2)
}