UNPKG
fetchbee
Version:
latest (3.6.5)
3.6.5
3.5.6
3.2.5
2.0.1
2.0.0
1.2.7
1.2.6
1.2.5
A lightweight JS library to simplify all kinds of API calls.
fetchbee
/
getById.js
6 lines
(4 loc)
•
152 B
JavaScript
View Raw
1
2
3
4
5
6
import
{ getFetch }
from
"./getFetch.js"
;
export
async
function
getById
(
baseUrl, id, options = {}
) {
return
getFetch
(
`
${baseUrl}
/
${id}
`
, options); }