init oc-catalog

This commit is contained in:
mr
2024-07-26 13:07:25 +02:00
commit 053c1ddf31
36 changed files with 2952 additions and 0 deletions

19
controllers/version.go Normal file
View File

@@ -0,0 +1,19 @@
package controllers
import (
beego "github.com/beego/beego/v2/server/web"
)
// VersionController operations for Version
type VersionController struct {
beego.Controller
}
// @Title GetAll
// @Description get version
// @Success 200
// @router / [get]
func (c *VersionController) GetAll() {
c.Data["json"] = map[string]string{"version": "1"}
c.ServeJSON()
}