diff --git a/src/public/package.json b/src/public/package.json index 50b31dd..26e02c5 100644 --- a/src/public/package.json +++ b/src/public/package.json @@ -8,7 +8,8 @@ "start": "npm run develop", "serve": "gatsby serve", "deploy": "serverless client deploy --no-confirm", - "clean": "gatsby clean" + "clean": "gatsby clean", + "test": "echo \"No tests defined\"" }, "repository": { "type": "git", diff --git a/src/public/src/api/APIRequest.tsx b/src/public/src/api/APIRequest.tsx index 098f608..9fdf171 100644 --- a/src/public/src/api/APIRequest.tsx +++ b/src/public/src/api/APIRequest.tsx @@ -1,6 +1,5 @@ export const APIRequest = (url:string, body?:object) => { return fetch(`https://api.domsplace.com/v1/${url}`, { - //mode: 'no-cors', method: body ? 'POST' : 'GET', body: body ? JSON.stringify(body) : null, headers: {