refactor: data analyze result.
This commit is contained in:
@ -15,9 +15,10 @@ func SetupRouter() *gin.Engine {
|
||||
|
||||
v1 := r.Group("/api/v1")
|
||||
{
|
||||
records := v1.Group("/train-records").Use(middleware.AuthMiddleware())
|
||||
records := v1.Group("/train-records") //.Use(middleware.AuthMiddleware())
|
||||
{
|
||||
records.POST("", trainingController.CreateTrainingRecord)
|
||||
records.GET("/analysis", trainingController.HandleCurveAnalysis)
|
||||
// 可扩展其他路由:GET, PUT, DELETE等
|
||||
}
|
||||
auth := v1.Group("/auth")
|
||||
|
||||
Reference in New Issue
Block a user