Skip to content

Commit

Permalink
migrate glassware to internal server
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaStelmashchuk committed Nov 21, 2024
1 parent ba97ffb commit 3005d7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions api/pages.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export const getItems = (path) => {
return $fetch(`https://newapi.mixdrinks.org/api${path}`)
}
export const getGood = (path) => {
return $fetch(`/api${path}`)
}
export const getTool = (path) => {
return $fetch(`/api${path}`)
}
export const getGlassware = (path) => {
return $fetch(`/api${path}`)
}
export const getCoctails = (path, fetchWIXUP) => {
return fetchWIXUP(`https://newapi.mixdrinks.org/api/filter${path}`)
}
Expand Down
4 changes: 2 additions & 2 deletions pages/glassware/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { defineComponent, unref } from 'vue'
import { useAsyncData, useNuxtApp, useRoute } from 'nuxt/app'
import ItemsPage from '~~/components/items/ItemsPage.vue'
import { getItems, getCoctails } from '~~/api/pages'
import { getGlassware, getCoctails } from '~~/api/pages'
import { querySTR } from '~~/utils/querySTR'
export default defineComponent({
Expand All @@ -31,7 +31,7 @@ export default defineComponent({
const { data, refresh } = await useAsyncData(async () => {
const [cocktailsFull, items] = await Promise.all([
getCoctails(getPath(), $fetchWIXUP),
getItems(route.path)
getGlassware(route.path)
])
return { cocktailsFull, items }
})
Expand Down

0 comments on commit 3005d7d

Please sign in to comment.