Skip to content

Commit

Permalink
fix: playground api endpoint (#177)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly authored Nov 1, 2023
1 parent 5c26857 commit 12b7580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/server/ui/dist/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function run() {
const output = document.getElementById("output");
output.value = "Evaluating...";
try {
const reponse = await fetch("/api/playground/scan", {
const reponse = await fetch("api/playground/scan", {
method: "POST",
body: JSON.stringify({
payload: payload,
Expand Down
2 changes: 1 addition & 1 deletion website/playground/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function run() {
const output = document.getElementById("output");
output.value = "Evaluating...";
try {
const reponse = await fetch("/api/playground/scan", {
const reponse = await fetch("api/playground/scan", {
method: "POST",
body: JSON.stringify({
payload: payload,
Expand Down

0 comments on commit 12b7580

Please sign in to comment.