loopback-component-cloudinary
v0.1.1
Published
Connect Loopback with Cloudinary
Downloads
1,180
Readme
loopback-component-cloudinary
Connect Loopback with Cloudinary.
Install component
npm install loopback-component-cloudinary --save
Configure datasource
"cloudinary": { "name": "cloudinary", "connector": "loopback-component-cloudinary", "url": "[API-URL]" }
Define model, common/models/cloudinary-image.json:
{ "name": "CloudinaryImage", "base": "Model" }
Add entry to server/model-config.json
"CloudinaryImage": { "dataSource": "cloudinary", "public": true }
Use!!!
FileCloudinary.upload(req, res, options)