-
+
diff --git a/frontend/src/rest/ScientificPublications/ManageResearch.js b/frontend/src/rest/ScientificPublications/ManageResearch.js
index ac3db81..f2dd715 100644
--- a/frontend/src/rest/ScientificPublications/ManageResearch.js
+++ b/frontend/src/rest/ScientificPublications/ManageResearch.js
@@ -1,8 +1,24 @@
-import { restGet, restPost, restDelete, restPatch } from '../restConsumer.js'
+import {restGet, restPost, restDelete, restPatch, restPostFile} from '../restConsumer.js'
export async function deleteArticle(id){
await restDelete("/research/" + id)
}
export async function patchArticle(id, data){
await restPatch("/research/" + id, data)
+}
+export async function uploadPdf(file){
+ const formData = new FormData();
+ formData.append("file", file[0]);
+
+ return restPostFile("/upload/Research", formData);
+}
+export async function uploadBibTex(file){
+ const formData = new FormData();
+ formData.append("file", file[0]);
+
+ return restPostFile("/upload/Research", formData);
+}
+
+export async function postResearch(data){
+ return restPost("/research", data)
}
\ No newline at end of file