Skip to content

The only tool you need to know what is happening and how to fix it.

healthcheck version endpoint added

dduxc9a42c29fbcb
diff --git a/backend/main.go b/backend/main.go
index 79f17a6b..6b5bab04 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -46,6 +46,10 @@ func main() {
apiRouterGroup := router.Group("/api")
controllers.RegisterControllers(apiRouterGroup)
+ router.GET("/version", func(ctx *gin.Context) {
+ ctx.JSON(200, gin.H{"version": "0.0.1"})
+ })
+
if err := router.Run(":8082"); err != nil {
panic(err)
}