trying to fix api call to api/plan/trigger endpoint

This commit is contained in:
Khalim Conn-Kowlessar 2023-08-03 10:40:59 +01:00
parent ac9e1d3d9b
commit 94c99a7b5a

View file

@ -57,7 +57,9 @@ const useCreatePlan = ({
trigger_file_path: fileKey,
});
const response = fetch(`/api/plan/trigger`, {
const url = process.env.URL + "/api/plan/trigger";
const response = fetch(url, {
method: "POST",
body: body,
});