Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
:ambulance: Critical hotfix
Liyas Thomasb6c16c83c144
diff --git a/functions/api.js b/functions/api.jsindex 1b5cc68ca..5e95b8332 100644--- a/functions/api.js+++ b/functions/api.js@@ -1,9 +1,9 @@// Docs on event and context https://www.netlify.com/docs/functions/#the-handler-method-export async function handler({ httpMethod, queryStringParameters }, context) {- switch (httpMethod) {+exports.handler = async (event, context) => {+ switch (event.httpMethod) {case "GET":try {- const name = queryStringParameters.name || "World"+ const name = event.queryStringParameters.name || "World"return {statusCode: 200,headers: {