Skip to content

Commit 135ca56

Browse files
committed
moving the api around
1 parent 2ee102b commit 135ca56

4 files changed

Lines changed: 2 additions & 2 deletions

File tree

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)