project_module_router.go
685 字节
package routers
import (
"github.com/astaxie/beego"
"github.com/tiptok/godevp/pkg/port/beego/controllers"
)
func init() {
beego.Router("/project-modules/", &controllers.ProjectModuleController{}, "Post:CreateProjectModule")
beego.Router("/project-modules/:projectModuleId", &controllers.ProjectModuleController{}, "Put:UpdateProjectModule")
beego.Router("/project-modules/:projectModuleId", &controllers.ProjectModuleController{}, "Get:GetProjectModule")
beego.Router("/project-modules/:projectModuleId", &controllers.ProjectModuleController{}, "Delete:RemoveProjectModule")
beego.Router("/project-modules/", &controllers.ProjectModuleController{}, "Get:ListProjectModule")
}