This commit is contained in:
XM-GO
2023-07-03 17:49:41 +08:00
parent 89e3b4fd55
commit 85f4f328f4
3 changed files with 28 additions and 1 deletions

View File

@@ -81,5 +81,11 @@ func InitVisualScreenRouter(container *restful.Container) {
Doc("孪生体数据").
Metadata(restfulspec.KeyOpenAPITags, tags))
ws.Route(ws.GET("/twin/data1").To(func(request *restful.Request, response *restful.Response) {
restfulx.NewReqCtx(request, response).WithNeedCasbin(false).WithLog("孪生体数据").Handle(s.ScreenTwinData1)
}).
Doc("孪生体数据").
Metadata(restfulspec.KeyOpenAPITags, tags))
container.Add(ws)
}