We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2263035 commit d3ce17dCopy full SHA for d3ce17d
1 file changed
apps/webapp/app/routes/api.v1.obsmap-canary.tokens.ts
@@ -0,0 +1,10 @@
1
+// SCORER TEST FIXTURE. A throwaway route used to verify that the observability-map CI
2
+// comment reports a regression when an unguarded sensitive route is added. Never merge.
3
+import { json } from "@remix-run/server-runtime";
4
+import { prisma } from "~/db.server";
5
+
6
+export async function action({ params }: { params: { orgParam: string } }) {
7
+ const org = await prisma.organization.findFirst({ where: { slug: params.orgParam } });
8
+ const projects = await prisma.project.findMany({ where: { organizationId: org?.id } });
9
+ return json({ count: projects.length });
10
+}
0 commit comments