Skip to content

Commit

Permalink
fix: no fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuijjer committed Dec 8, 2023
1 parent 3bf5865 commit e5c46e9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cloud/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const getUsingGot = async () => {
}

const getLux = async () => {
const response = await fetch(
const response = await got(
'https://www.lux-nijmegen.nl/wp-json/lux/v1/discover',
{
headers: {
Expand All @@ -184,10 +184,9 @@ const getLux = async () => {
body: '{"types":[],"genres":[122],"tags":[],"search":"","isVerwacht":false}',
method: 'POST',
},
)
).json()

const json = await response.json()
return json
return response
}

const playground = async ({ event, context } = {}) => {
Expand Down

0 comments on commit e5c46e9

Please sign in to comment.