Skip to content

Commit

Permalink
remove auth
Browse files Browse the repository at this point in the history
  • Loading branch information
jtgi committed Sep 22, 2024
1 parent b019176 commit 6a62e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions app/routes/api.channels.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { json, LoaderFunctionArgs } from "@remix-run/node";
import invariant from "tiny-invariant";
import { requirePartnerApiKey } from "~/lib/utils.server";
import { db } from "~/lib/db.server";
import { Rule, ruleDefinitions } from "~/lib/validations.server";

export async function loader({ request, params }: LoaderFunctionArgs) {
await requirePartnerApiKey({ request });

const channel = await db.moderatedChannel.findMany({});

const channels = channel.map((channel) => {
Expand Down
4 changes: 3 additions & 1 deletion app/routes/api.signer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import { LoaderFunctionArgs } from "@remix-run/node";
import { redirect } from "remix-typedjson";
import { db } from "~/lib/db.server";
import { getUser } from "~/lib/neynar.server";
import { getSharedEnv } from "~/lib/utils.server";
import { getSharedEnv, requireSuperAdmin } from "~/lib/utils.server";

export async function loader({ request }: LoaderFunctionArgs) {
await requireSuperAdmin({ request });

const url = new URL(request.url);
const signerUuid = url.searchParams.get("signerUuid") ?? undefined;
const fid = url.searchParams.get("fid") ?? undefined;
Expand Down

0 comments on commit 6a62e30

Please sign in to comment.