Skip to content

Commit

Permalink
fix(controllers/index.ts): change "api-key" header to "x-api-key" for…
Browse files Browse the repository at this point in the history
… consistency and to follow best practices
  • Loading branch information
anovazzi1 committed Oct 5, 2023
1 parent 6293f43 commit 9e4c3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function sendMessage(baseUrl: string, flowId: string, message: stri
}
const headers:{[key:string]:string}= {"Content-Type": "application/json"}
if( api_key){
headers["api-key"]=api_key;
headers["x-api-key"]=api_key;
}
let response = axios.post(`${baseUrl}/api/v1/process/${flowId}`, data,{headers});
return response;
Expand Down

0 comments on commit 9e4c3e6

Please sign in to comment.