Creates a new bPanel API endpoint /curl which accepts two parameters host and path:
'/curl/:host/:path'
Handled by curl() in clients.js, executes a bcurl.get() to fetch JSON from a remote API.
PRs will follow for bpanel-utils and price. The motivation here is to allow the bpanel client to fetch API data without CORS errors. Using this new /curl endpoint, all API requests go through the server!
Creates a new bPanel API endpoint
/curl
which accepts two parametershost
andpath
:'/curl/:host/:path'
Handled by
curl()
in clients.js, executes abcurl.get()
to fetch JSON from a remote API.PRs will follow for bpanel-utils and price. The motivation here is to allow the bpanel client to fetch API data without CORS errors. Using this new
/curl
endpoint, all API requests go through the server!