Skip to content

Instantly share code, notes, and snippets.

View avinashmaurya86's full-sized avatar
💻
Happy Coding

Avinash Maurya avinashmaurya86

💻
Happy Coding
View GitHub Profile
@ShariqAnsari88
ShariqAnsari88 / order.js
Created December 18, 2022 21:14
E-Commerce by JS Dev
("use strict");
const stripe = require("stripe")(process.env.STRIPE_KEY);
/**
* order controller
*/
const { createCoreController } = require("@strapi/strapi").factories;
module.exports = createCoreController("api::order.order", ({ strapi }) => ({
async create(ctx) {