8 lines
254 B
JavaScript
8 lines
254 B
JavaScript
|
import { restGet, restPost, restDelete, restPatch } from '../restConsumer.js'
|
||
|
|
||
|
export async function deleteArticle(id){
|
||
|
await restDelete("/research/" + id)
|
||
|
}
|
||
|
export async function patchArticle(id, data){
|
||
|
await restPatch("/research/" + id, data)
|
||
|
}
|