1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-24 12:14:49 +07:00
verdaccio-ui/src/webui/utils/calls.js

13 lines
285 B
JavaScript
Raw Normal View History

2019-02-03 17:23:33 +07:00
import API from './api';
/**
* @prettier
*/
export async function callDetailPage(packageName) {
const readMe = await API.request(`package/readme/${packageName}`, 'GET');
const packageMeta = await API.request(`sidebar/${packageName}`, 'GET');
return {readMe, packageMeta};
}