fix: add trailing slash to compile endpoint to avoid HTTP redirect
parent
5b59ebdc30
commit
60e737c2d4
|
|
@ -28,7 +28,7 @@ export async function compileCode(
|
||||||
console.log('Files:', files.map((f) => f.name));
|
console.log('Files:', files.map((f) => f.name));
|
||||||
|
|
||||||
const response = await axios.post<CompileResult>(
|
const response = await axios.post<CompileResult>(
|
||||||
`${API_BASE}/compile`,
|
`${API_BASE}/compile/`,
|
||||||
{ files, board_fqbn: board },
|
{ files, board_fqbn: board },
|
||||||
{ withCredentials: true }
|
{ withCredentials: true }
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue