This commit is contained in:
che
2026-07-11 16:13:07 +05:00
parent 111cadd184
commit b815cde04c
24 changed files with 2858 additions and 76 deletions
+16
View File
@@ -0,0 +1,16 @@
package analize
import (
"github.com/che4web/go4rest"
"github.com/gin-gonic/gin"
"gorm.io/gorm"
)
func RegisterApp(r *gin.Engine, db *gorm.DB) {
db.AutoMigrate(&Analize{})
controller := NewAnalizeController(db)
go4rest.RegisterCRUDRoutes(r, "analize", controller)
r.GET("/api/analize/series", controller.Series)
r.POST("/api/analize/:id/recalculate", controller.Recalculate)
}