From 9a2bc7fd7346433c31c589c2efce0f64625d28e6 Mon Sep 17 00:00:00 2001 From: ION606 Date: Tue, 26 Jul 2022 08:30:21 +0300 Subject: [PATCH] Stripe part 2 --- main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.js b/main.js index 175ac7b..da4700f 100644 --- a/main.js +++ b/main.js @@ -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 {