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 4275409 commit 74164c5Copy full SHA for 74164c5
handler/index.mjs
@@ -2,6 +2,9 @@
2
* 301 permanently redirect /index requests to /graphql
3
*/
4
export const handler = async function(event) {
5
+ if (req.httpMethod === 'OPTIONS') {
6
+ return { statusCode: 200 }
7
+ }
8
let location = '/graphql';
9
if (event.queryStringParameters) {
10
location += '?' + new URLSearchParams(event.queryStringParameters);
handler/swapi.mjs
* 301 permanently redirect /swapi requests to /graphql
0 commit comments