mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-13 02:55:39 +00:00
frontend restructured
This commit is contained in:
12
frontend/templates/utils/genJsonPayload.js
Normal file
12
frontend/templates/utils/genJsonPayload.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const genJsonPayload = payload => {
|
||||
let value = {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify(payload),
|
||||
};
|
||||
return value;
|
||||
};
|
||||
|
||||
export default genJsonPayload;
|
||||
Reference in New Issue
Block a user