We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b78e74 commit dc6cc0bCopy full SHA for dc6cc0b
2 files changed
now.json
@@ -3,7 +3,7 @@
3
"version": 2,
4
"routes": [
5
{
6
- "src": "/api/gist",
+ "src": "/gist",
7
"dest": "/api/gist.js",
8
"headers": {
9
"Access-Control-Allow-Origin": "*",
@@ -13,6 +13,10 @@
13
14
"src": "/download",
15
"dest": "/api/download.js"
16
+ },
17
+ {
18
+ "src": "/(.*)",
19
+ "status": 404
20
}
21
],
22
"env": {
src/state.mjs
@@ -91,7 +91,7 @@ const saveSpan = document.querySelector('#save-to-gist-output');
91
document.querySelector('#save-to-gist')
92
.addEventListener('click', () => {
93
saveSpan.textContent = 'Saving...';
94
- state.then((s) => fetch('https://api.engine262.js.org/api/gist', {
+ state.then((s) => fetch('https://api.engine262.js.org/gist', {
95
method: 'POST',
96
headers: {
97
'Content-Type': 'application/json',
0 commit comments