Files
Clyde/frontend/src/rest/ScientificPublications/ResearcherProfile.js
2024-04-17 00:26:56 +02:00

20 lines
469 B
JavaScript

import { restGet, restPost, restDelete, restPatch } from '../restConsumer.js'
export async function fetchResearcher(id){
return restGet("/researcher/" + id)
}
export async function fetchResearches(id){
return restGet("/researches/" + id)
}
export async function fetchStats(id){
return restGet("/stats/" +id)
}
export async function addView(url){
return restPost("/addView/" +url)
}
export async function getFile(url){
return restGet("/" + url)
}