Skip to content

Commit 24196d6

Browse files
committed
refactor: move server APIs to atproto directory
1 parent d47b3ab commit 24196d6

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

app/pages/pds.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import type { AtprotoProfile } from '#server/api/pds-users.get.ts'
2+
import type { AtprotoProfile } from '#server/api/atproto/users.get.ts'
33
44
const router = useRouter()
55
const canGoBack = useCanGoBack()
@@ -25,9 +25,12 @@ const handleImageError = (handle: string) => {
2525
brokenImages.value.add(handle)
2626
}
2727
28-
const { data: pdsUsers, status: pdsStatus } = useLazyFetch<AtprotoProfile[]>('/api/pds-users', {
29-
default: () => [],
30-
})
28+
const { data: pdsUsers, status: pdsStatus } = useLazyFetch<AtprotoProfile[]>(
29+
'/api/atproto/pds-users',
30+
{
31+
default: () => [],
32+
},
33+
)
3134
3235
const usersWithAvatars = computed(() => {
3336
return pdsUsers.value.filter(user => user.avatar && !brokenImages.value.has(user.handle))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { AtprotoProfile } from '#server/api/pds-users.get.ts'
1+
import type { AtprotoProfile } from '~~/server/api/atproto/pds-users.get'
22

33
interface GraphLink {
44
source: string

0 commit comments

Comments
 (0)