Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

small tweaks

Steven Tey72ad64ac17f2
diff --git a/pages/api/projects/[slug]/domains/[domain]/exists.ts b/pages/api/projects/[slug]/domains/[domain]/exists.ts
index bb847fe0ad..b3d26a098d 100644
--- a/pages/api/projects/[slug]/domains/[domain]/exists.ts
+++ b/pages/api/projects/[slug]/domains/[domain]/exists.ts
@@ -6,7 +6,7 @@ export default withUserAuth(
async (req: NextApiRequest, res: NextApiResponse) => {
const { domain } = req.query as { domain: string };
- // GET /api/projects/dub/domains/[domain]/exists – check if a domain exists (using `dub` as the default project slug)
+ // GET /api/projects/[slug]/domains/[domain]/exists – check if a domain exists
if (req.method === "GET") {
const project = await prisma.project.findUnique({
where: {
diff --git a/pages/api/projects/[slug]/domains/[domain]/index.ts b/pages/api/projects/[slug]/domains/[domain]/index.ts
index 4c02526e10..2333d88b38 100644
--- a/pages/api/projects/[slug]/domains/[domain]/index.ts
+++ b/pages/api/projects/[slug]/domains/[domain]/index.ts
@@ -5,7 +5,6 @@ import prisma from "@/lib/prisma";
import { validDomainRegex } from "@/lib/utils";
import { changeDomainForImages, changeDomainForLinks } from "@/lib/api/links";
import { ProjectProps } from "@/lib/types";
-import cloudinary from "cloudinary";
export default withProjectAuth(
async (req: NextApiRequest, res: NextApiResponse, project: ProjectProps) => {
diff --git a/pages/api/projects/[slug]/usage.ts b/pages/api/projects/[slug]/usage.ts
index 2b3d870a7b..d601809717 100644
--- a/pages/api/projects/[slug]/usage.ts
+++ b/pages/api/projects/[slug]/usage.ts
@@ -14,7 +14,6 @@ export default withProjectAuth(
// GET /api/projects/[slug]/usage – get the usage stats specific project (dependent on owner's plan)
if (req.method === "GET") {
return res.status(200).json(project);
- // DELETE /api/projects/[slug] – delete a project
} else {
res.setHeader("Allow", ["GET"]);
return res