Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add /api as the mirage passthrough to let /api call the real backend

天舟bdd4c12b1e97
diff --git a/frontend/src/miragejs/routes/index.js b/frontend/src/miragejs/routes/index.js
index cf7bc1b78e..b27e055869 100644
--- a/frontend/src/miragejs/routes/index.js
+++ b/frontend/src/miragejs/routes/index.js
@@ -78,4 +78,8 @@ export default function routes() {
// Disable data source related route for now
// as we only allow interacting with admin data source via instance API
// configureDataSource(this);
+
+ // Endpoint destined to /api will pass through to the actual backend
+ this.namespace = "api";
+ this.passthrough();
}