Skip to content

Commit

Permalink
feat(api): remove unnecessary apis
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Feb 19, 2024
1 parent 9437862 commit bcc8e71
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
12 changes: 0 additions & 12 deletions src/app/api/payment/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { env } from '@/env.mjs';
import { redisClient } from '@/lib/redis';
import { squareClient } from '@/lib/square';
import { updateMemberExpiryDate } from '@/server/update-member-expiry-date';
import { verifyMembershipPayment } from '@/server/verify-membership-payment';
import { currentUser } from '@clerk/nextjs';
import { eq } from 'drizzle-orm';
import type { CreatePaymentLinkRequest } from 'square';
Expand Down Expand Up @@ -115,14 +114,3 @@ export async function PUT(request: Request) {
}
return Response.json({ success: true });
}

// Get membership payment status
export async function GET() {
const user = await currentUser();
if (!user) {
return new Response(null, { status: 401 });
}

const { paid } = await verifyMembershipPayment(user.id);
return Response.json({ paid });
}
12 changes: 0 additions & 12 deletions src/app/api/user-existence/route.ts

This file was deleted.

0 comments on commit bcc8e71

Please sign in to comment.