query_set_router.go
1.2 KB
package routers
import (
"github.com/beego/beego/v2/server/web"
"gitlab.fjmaimaimai.com/allied-creation/character-library-metadata-bastion/pkg/port/beego/controllers"
)
func init() {
web.Router("/data/query-sets/", &controllers.QuerySetController{}, "Post:CreateQuerySet")
web.Router("/data/query-sets/:querySetId", &controllers.QuerySetController{}, "Put:UpdateQuerySet")
web.Router("/data/query-sets/:querySetId", &controllers.QuerySetController{}, "Get:GetQuerySet")
web.Router("/data/query-sets/:querySetId", &controllers.QuerySetController{}, "Delete:RemoveQuerySet")
web.Router("/data/query-sets/", &controllers.QuerySetController{}, "Get:ListQuerySet")
web.Router("/data/query-sets/change-status", &controllers.QuerySetController{}, "Post:ChangeStatus")
web.Router("/data/query-sets/copy", &controllers.QuerySetController{}, "Post:Copy")
web.Router("/data/query-sets/dependency-graph", &controllers.QuerySetController{}, "Post:DependencyGraph")
web.Router("/data/query-sets/move", &controllers.QuerySetController{}, "Post:Move")
web.Router("/data/query-sets/rename", &controllers.QuerySetController{}, "Post:Rename")
web.Router("/data/query-sets/search", &controllers.QuerySetController{}, "Post:SearchQuerySet")
}