aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/helpers/httpHelper.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/helpers/httpHelper.js')
-rw-r--r--frontend/src/helpers/httpHelper.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/frontend/src/helpers/httpHelper.js b/frontend/src/helpers/httpHelper.js
index ca77ed7..99b9513 100644
--- a/frontend/src/helpers/httpHelper.js
+++ b/frontend/src/helpers/httpHelper.js
@@ -21,13 +21,13 @@ export function FetchPasswordPaste(hash, pass) {
})
}
-export function PostNewPaste(state) {
+export function PostNewPaste(title, content, language, pass, expiry) {
var bodyFormData = new FormData();
- bodyFormData.set('title', state.title);
- bodyFormData.set('content', state.content);
- bodyFormData.set('language', state.language);
- bodyFormData.set('password', state.pass);
- bodyFormData.set('expiry', parseExpiry(state.expiry));
+ bodyFormData.set('title', title);
+ bodyFormData.set('content', content);
+ bodyFormData.set('language', language);
+ bodyFormData.set('password', pass);
+ bodyFormData.set('expiry', parseExpiry(expiry));
return axios({
method: 'post',