Skip to content

Commit 694686b

Browse files
committed
feat: remove unsed api
1 parent a36972f commit 694686b

File tree

4 files changed

+3
-34
lines changed

4 files changed

+3
-34
lines changed

apps/web/app/api/protected/tag/route.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/web/app/api/public/tag/[tagIdOrSlug]/route.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

apps/web/app/api/public/tags/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { NextRequest } from "next/server"
22

3-
import prisma, { Prisma } from "database"
3+
import prisma, { Prisma, tagListSelect } from "database"
44

55
import { DEFAULT_TAG_PAGE_LIMIT } from "@/constants"
6-
import { tagListSelect } from "@/types/tags"
76

87
export async function GET(request: NextRequest) {
98
const newUrl = request.nextUrl.clone()

packages/database/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
} from "./shared/type"
2323
import { createTag, getTag, getTags, getTopTags } from "./tags/queries"
2424
import type { TTagItem, TTagListItem } from "./tags/selects"
25+
import { tagListSelect } from "./tags/selects"
2526
import { getUser } from "./users/queries"
2627
import { TUserDetail } from "./users/selects"
2728

@@ -34,6 +35,7 @@ export {
3435
getTag,
3536
getTags,
3637
getTopTags,
38+
tagListSelect,
3739

3840
// Posts
3941
getPost,

0 commit comments

Comments
 (0)