Skip to content

Commit

Permalink
Update apps/web/app/api/links/verify/destination-url/route.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Wilson <[email protected]>
  • Loading branch information
steven-tey and TWilson023 authored Oct 15, 2024
1 parent bba2f37 commit b1c7b7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/web/app/api/links/verify/destination-url/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import { prisma } from "@/lib/prisma";
import { NextResponse } from "next/server";

export const GET = withWorkspace(
async ({ req, workspace }) => {
const { searchParams } = new URL(req.url);
const url = searchParams.get("url");
async ({ workspace, searchParams }) => {
const { url } = searchParams;

if (!url) {
throw new DubApiError({
Expand Down

0 comments on commit b1c7b7d

Please sign in to comment.