diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-07 21:03:18 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-07 21:03:18 +0100 |
| commit | 84adcb14af7a0e13549f1977a2a5690e978fcf57 (patch) | |
| tree | 927f33474201414c2e962c20b6fa8da89701677d /api-src | |
| parent | 2f6f0c8b52a1df369f0b9af25017233287fef9db (diff) | |
Doesn't insist on POST
Diffstat (limited to 'api-src')
| -rw-r--r-- | api-src/createPaypalOrder.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/api-src/createPaypalOrder.ts b/api-src/createPaypalOrder.ts index 5d30e1f..9d15071 100644 --- a/api-src/createPaypalOrder.ts +++ b/api-src/createPaypalOrder.ts @@ -9,12 +9,6 @@ export default async function handler(request: VercelRequest, response: VercelRe console.info('shortDescription: ' + shortDescription); console.info('totalPrice: ' + totalPrice); - if (request.method !== 'POST') { - console.warn('Method was not POST. Method was ' + request.method); - response.status(404); - return; - } - if (!productDescription) { response.status(400).send('Expected body to contain productDescription, but none provided.'); } else if (!shortDescription) { |
