[chore] Update npm packages and fix errors/run migrations
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
|
||||
|
||||
// Block GET requests
|
||||
export async function get ({ body, query }) {
|
||||
export async function get ({ url, body }) {
|
||||
return {
|
||||
status: 403,
|
||||
body: 'nope!'
|
||||
@@ -21,7 +21,7 @@ export async function get ({ body, query }) {
|
||||
/**
|
||||
* POST request
|
||||
*/
|
||||
export async function post ({ headers, query, body, params, ...rest }) {
|
||||
export async function post ({ headers, url, body, params, ...rest }) {
|
||||
try {
|
||||
const bodyParsed = JSON.parse(Buffer.from(body).toString())
|
||||
const { action, cartId, productId } = bodyParsed
|
||||
|
||||
Reference in New Issue
Block a user