We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0bccb7 commit 206145eCopy full SHA for 206145e
handler/index.mjs
@@ -2,7 +2,7 @@
2
* 301 permanently redirect /index requests to /graphql
3
*/
4
export const handler = async function(event) {
5
- if (req.httpMethod === 'OPTIONS') {
+ if (event.httpMethod === 'OPTIONS') {
6
return { statusCode: 200 };
7
}
8
let location = '/graphql';
handler/swapi.mjs
* 301 permanently redirect /swapi requests to /graphql
0 commit comments