🚑 Critical hotfix
This commit is contained in:
parent
6331c4715f
commit
b6c16c83c1
1 changed files with 3 additions and 3 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue