Move callbacks to the default switch blocks...
All checks were successful
build-docker-imge / Build the docker container (push) Successful in 28m24s

This commit is contained in:
Konstantin Hintermayer 2024-10-06 21:10:40 +02:00
parent beea84a6e9
commit af0e2919f4
3 changed files with 7 additions and 5 deletions

View File

@ -109,7 +109,7 @@ ENV NODE_ENV=production
# This is important if you intend to configure GraphQL to use Realtime.
#
# CMD [ "./api/dist/server.js" ]
CMD [ "node_modules/.bin/rw-server", "api" ]
CMD [ "node_modules/.bin/rw-server", "api" ]
# web serve
# ---------

View File

@ -27,9 +27,10 @@ export const handler = async (event: APIGatewayEvent, _context: Context) => {
case '/oauth/microsoft/callback':
return await callback(event)
default:
return {
return await callback(event)
/*return {
statusCode: 404,
}
}*/
}
}

View File

@ -25,9 +25,10 @@ export const handler = async (event: APIGatewayEvent, _context: Context) => {
case '/oauthStart/microsoft':
return await callback()
default:
return {
return await callback()
/* return {
statusCode: 404,
}
} */
}
}