Skip to content

Commit 5787fc3

Browse files
committed
moving the api around
1 parent 4cbfb05 commit 5787fc3

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

app/composables/atproto/useLikePackage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function useLikePackage(packageName: string) {
1313
error.value = null
1414

1515
try {
16-
const result = await $fetch<PackageLikes>('/api/auth/social/like', {
16+
const result = await $fetch<PackageLikes>('/api/social/like', {
1717
method: 'POST',
1818
body: { packageName },
1919
})

app/composables/atproto/useUnlikePackage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function useUnlikePackage(packageName: string) {
1313
error.value = null
1414

1515
try {
16-
const result = await $fetch<PackageLikes>('/api/auth/social/like', {
16+
const result = await $fetch<PackageLikes>('/api/social/like', {
1717
method: 'DELETE',
1818
body: { packageName },
1919
})

0 commit comments

Comments
 (0)