mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 11:42:23 +08:00
Use body parser only for PayPal IPN
This commit is contained in:
parent
eaac28d4ee
commit
e6d8cca4fe
|
@ -28,17 +28,13 @@ module.exports = (app, serveV4) => {
|
||||||
app.use(compression());
|
app.use(compression());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse body mostly for PayPal IPN
|
|
||||||
app.use(bodyParser.json());
|
|
||||||
app.use(bodyParser.urlencoded({
|
|
||||||
extended: false,
|
|
||||||
}));
|
|
||||||
|
|
||||||
app.get('/oauth2/githubToken', github.githubToken);
|
app.get('/oauth2/githubToken', github.githubToken);
|
||||||
app.get('/userInfo', user.userInfo);
|
app.get('/userInfo', user.userInfo);
|
||||||
app.post('/paypalIpn', user.paypalIpn);
|
|
||||||
app.post('/pdfExport', pdf.generate);
|
app.post('/pdfExport', pdf.generate);
|
||||||
app.post('/pandocExport', pandoc.generate);
|
app.post('/pandocExport', pandoc.generate);
|
||||||
|
app.post('/paypalIpn', bodyParser.urlencoded({
|
||||||
|
extended: false,
|
||||||
|
}), user.paypalIpn);
|
||||||
|
|
||||||
if (serveV4) {
|
if (serveV4) {
|
||||||
/* eslint-disable global-require, import/no-unresolved */
|
/* eslint-disable global-require, import/no-unresolved */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user