🚑 Critical hotfix
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
// Docs on event and context https://www.netlify.com/docs/functions/#the-handler-method
|
// Docs on event and context https://www.netlify.com/docs/functions/#the-handler-method
|
||||||
export async function handler({ httpMethod, queryStringParameters }, context) {
|
exports.handler = async (event, context) => {
|
||||||
switch (httpMethod) {
|
switch (event.httpMethod) {
|
||||||
case "GET":
|
case "GET":
|
||||||
try {
|
try {
|
||||||
const name = queryStringParameters.name || "World"
|
const name = event.queryStringParameters.name || "World"
|
||||||
return {
|
return {
|
||||||
statusCode: 200,
|
statusCode: 200,
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in New Issue
Block a user