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.
2 parents 4275409 + d5cf816 commit 434c3c2Copy full SHA for 434c3c2
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