diff --git a/.gitignore b/.gitignore index 30436e8..1f6140c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ dist/ .idea/ .exe -.claude \ No newline at end of file +.claude +.gocache +.gomodcache \ No newline at end of file diff --git a/api/viid_handler.go b/api/viid_handler.go index 5b799fa..eb303d9 100644 --- a/api/viid_handler.go +++ b/api/viid_handler.go @@ -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 {