file_router.go 991 字节
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("/bastion/files/", &controllers.FileController{}, "Post:CreateFile")
	web.Router("/bastion/files/:fileId", &controllers.FileController{}, "Put:UpdateFile")
	web.Router("/bastion/files/:fileId", &controllers.FileController{}, "Get:GetFile")
	web.Router("/bastion/files/:fileId", &controllers.FileController{}, "Delete:RemoveFile")
	web.Router("/bastion/files/", &controllers.FileController{}, "Get:ListFile")
	web.Router("/bastion/load-data-table", &controllers.FileController{}, "Post:LoadDataTable")
	web.Router("/bastion/edit-data-table", &controllers.FileController{}, "Post:EditDataTable")
	web.Router("/bastion/flush-data-table", &controllers.FileController{}, "Post:FlushDataTable")
	web.Router("/bastion/generate-main-table", &controllers.FileController{}, "Post:GenerateMainTable")
}