20 lines
469 B
JavaScript
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)
|
|
} |