You've already forked VptPassiveAdapter
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -2,3 +2,5 @@ dist/
|
||||
.idea/
|
||||
.exe
|
||||
.claude
|
||||
.gocache
|
||||
.gomodcache
|
||||
@@ -60,6 +60,10 @@ func RegisterVIIDRoutes(r *gin.Engine) {
|
||||
sys.POST("/UnRegister", HandleUnRegister)
|
||||
sys.GET("/Time", HandleSystemTime)
|
||||
}
|
||||
extend := viid.Group("/Extend")
|
||||
{
|
||||
extend.POST("/SceneCapture", HandleSceneCapture)
|
||||
}
|
||||
viid.POST("/Faces", HandleUploadFaces)
|
||||
}
|
||||
}
|
||||
@@ -78,6 +82,10 @@ func HandleUnRegister(c *gin.Context) {
|
||||
proxyHelper(c, "/VIID/System/UnRegister")
|
||||
}
|
||||
|
||||
func HandleSceneCapture(c *gin.Context) {
|
||||
proxyHelper(c, "/VIID/Extend/SceneCapture")
|
||||
}
|
||||
|
||||
func proxyHelper(c *gin.Context, path string) {
|
||||
resp, err := ProxyRequest(c.Request.Context(), c.Request.Method, path, c.Request.Body, c.Request.Header)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user