Skip to content

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

Remove task handler under /project resource

Tianzhou Chena936da611c70
diff --git a/frontend/src/miragejs/routes/index.js b/frontend/src/miragejs/routes/index.js
index 1e9685cb61..e7303f0e9f 100644
--- a/frontend/src/miragejs/routes/index.js
+++ b/frontend/src/miragejs/routes/index.js
@@ -388,34 +388,4 @@ export default function routes() {
}
return schema.environments.none();
});
-
- this.get("/project/:id/task", function (schema, request) {
- const project = schema.projects.find(request.params.id);
- if (project) {
- return schema.tasks.where({
- projectId: project.id,
- });
- }
- return schema.environments.none();
- });
-
- this.get("/project/:id/task/:taskId", function (schema, request) {
- const project = schema.projects.find(request.params.id);
- if (project) {
- return schema.tasks.findBy({
- slug: request.params.taskId,
- });
- }
- return null;
- });
-
- this.get("/project/:id/repository", function (schema, request) {
- const project = schema.projects.find(request.params.id);
- if (project) {
- return schema.repositories.findBy({
- projectId: project.id,
- });
- }
- return null;
- });
}