2024-04-15 23:35:05 +02:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2024-04-17 00:09:30 +02:00
|
|
|
export async function fetchStats(id){
|
|
|
|
return restGet("/stats/" +id)
|
|
|
|
}
|
|
|
|
export async function addView(url){
|
|
|
|
return restPost("/addView/" +url)
|
|
|
|
}
|
2024-04-15 23:35:05 +02:00
|
|
|
|