@@ -118,11 +118,13 @@ func addRoutes(r *gin.Engine, conf Configuration, uc usecases.Usecases, auth uti
118118 router .POST ("/ingestion/:object_type/batch" , timeoutMiddleware (conf .BatchTimeout ), handlePostCsvIngestion (uc ))
119119 router .GET ("/ingestion/:object_type/upload-logs" , tom , handleListUploadLogs (uc ))
120120
121- router .GET ("/graph/relations" , tom , handleListGraphRelations (uc ))
122- router .POST ("/graph/relations" , tom , handleCreateGraphRelation (uc ))
123- router .DELETE ("/graph/relations/:relation_id" , tom , handleDeleteGraphRelation (uc ))
121+ infra .RouteWithFeatureFlag (router , infra .GRAPH_EXPLORATION_FEATURE_FLAG , func (sub gin.IRoutes ) {
122+ sub .GET ("/graph/relations" , tom , handleListGraphRelations (uc ))
123+ sub .POST ("/graph/relations" , tom , handleCreateGraphRelation (uc ))
124+ sub .DELETE ("/graph/relations/:relation_id" , tom , handleDeleteGraphRelation (uc ))
124125
125- router .GET ("/graph/:node_type/:node_id" , tom , handleGraphWalk (uc ))
126+ sub .GET ("/graph/:node_type/:node_id" , tom , handleGraphWalk (uc ))
127+ })
126128
127129 router .GET ("/client_data/:object_type/:object_id" , tom , handleGetIngestedObject (uc ))
128130 router .GET ("/client_data/:object_type/:object_id/annotations" , tom , handleListEntityAnnotations (uc ))
0 commit comments