Update soul-content project
This commit is contained in:
9
app/api/payment/create/route.js
Normal file
9
app/api/payment/create/route.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { paymentService } from '../../../services/paymentService';
|
||||
import { connectDB } from '../../../lib/db';
|
||||
|
||||
export async function POST(req) {
|
||||
await connectDB();
|
||||
const data = await req.json();
|
||||
const order = await paymentService.createOrder(data);
|
||||
return Response.json({ success: true, order });
|
||||
}
|
||||
Reference in New Issue
Block a user