Stripe part 2

This commit is contained in:
ION606
2022-07-26 08:30:21 +03:00
parent 21d599cea4
commit 9a2bc7fd73
+6
View File
@@ -47,6 +47,7 @@ async function getJSONResponse(body) {
const app = express();
// app.use(express.json());
app.use(express.static('/assets'));
app.post('/user', async(request, response) => {
@@ -129,6 +130,11 @@ app.get('/index.html', async (req, res) => {
});
//Stripe stuff
app.get('/.well-known/apple-developer-merchantid-domain-association', async (req, res) => {
return res.sendFile('apple-developer-merchantid-domain-association', { root: '.' });
});
app.post('/sendData', async (req, res) => {
try {