Open OzanOcak opened 2 years ago
npm install netlify-cli -g touch netlify.toml mkdir functions and api call in charge-card.js file netlify dev curl `http://localhost:8888/.netlify/functions/card
charge-card.js
exports.handler = async (event, context) => { return { statusCode: 200, body: "I have charged that card many times!", }; };
npm install netlify-cli -g touch netlify.toml mkdir functions and api call in charge-card.js file netlify dev curl `http://localhost:8888/.netlify/functions/card
charge-card.js