Skip to content

A backend plugin for bPanel that adds a CORS-friendly `curl` API endpoint

Notifications You must be signed in to change notification settings

bpanel-org/curl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

curl

This plugin runs entirely on the server and has no views.

It adds a new API endpoint with the shape...

/curl/:host?path=<path>

Example usage from the @Bpanel/price plugin:

http://localhost:5000/curl/cex.io?path=api/ticker/BCH/USD

...and fetches JSON API data from the requested URL. This helps bypass CORS issues for plugins (such as price and price-widget) that need access to "arbitrary" servers on the internet.

Currently we require custom branches of bcurl and brq that allow more flexibility than usual. If those branches get merged into master we can remove the custom dependencies:

https://github.com/pinheadmz/bcurl/tree/bpanel-dev

https://github.com/pinheadmz/brq/tree/patch-1

About

A backend plugin for bPanel that adds a CORS-friendly `curl` API endpoint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published