Maybe a little late for you, but the best way to do this is use useFetchClient
const { get, post } = useFetchClient(); const test = await get('/users')
this uses internal admin routes with authentication