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)
|
2024-04-19 12:35:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function fetchResearch(id){
|
|
|
|
return restGet("/research/" +id)
|
2024-04-21 20:07:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function deleteResearcher(id){
|
|
|
|
return restDelete("/researcher/" + id)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function postResearcher(data){
|
|
|
|
return restPost("/researcher", data)
|
2024-04-17 00:26:56 +02:00
|
|
|
}
|