Skip to content

Commit

Permalink
Experiemnt (#891)
Browse files Browse the repository at this point in the history
* test

* add test
  • Loading branch information
alexfauquette authored Feb 18, 2024
1 parent 8a463b4 commit 5607295
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/pages/bug/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ export default function BugPage() {
>
Test v3 without credential
</button>
<button
onClick={() => {
axios
.patch("https://world.openfoodfacts.org/api/v3/product/123456789", {
ingredients_text_fr: text,
})
.then(({ data }) => setResponse(data));
}}
>
Test v3 without credential patch
</button>
<p>response</p>
<pre>{JSON.stringify(response)}</pre>
</div>
Expand Down

0 comments on commit 5607295

Please sign in to comment.