Is there an HTTP api equivalent of doing:
ipfs add -r resources/public
where resources/public
is a directory with a static website (index.html in the root, css, js etc).
Doing:
curl -F file=resources/public/index.html "http://$IPFS_HOST:5001/api/v0/add?recursive=true&wrap-with-directory=true"
Will only upload one file:
{"Name":"index.html","Hash":"QmZzbCaCPMEGJBLv7DJCDD2mvgkrvTg78MXYt7cPrQhge6","Size":"1255"}
{"Name":"","Hash":"QmdAGnATEQ1VoytC8L9h5nNepmiZCXv61ob49Dpz5nZVGf","Size":"1312"}