-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Geoff Kendal
committed
Feb 5, 2024
1 parent
8ab239a
commit feca52c
Showing
6 changed files
with
52 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" > | ||
<head> | ||
<title>Stumblefunk</title> | ||
</head> | ||
|
||
<body> | ||
<h1>Stumblefunk</h1> | ||
<p>Le fluff diabolique!</p> | ||
</body> | ||
|
||
</html> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="refresh" content="0; url='https://forms.gle/u7Bj9rmMAY7n4pBZ6'" /> | ||
</head> | ||
<body> | ||
<p>Loading <a href="https://forms.gle/u7Bj9rmMAY7n4pBZ6">artist-info</a></p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function handler(event) { | ||
var request = event.request; | ||
var uri = request.uri; | ||
|
||
// Check whether the URI is missing a file name. | ||
if (uri.endsWith('/')) { | ||
request.uri += 'index.html'; | ||
} | ||
// Check whether the URI is missing a file extension. | ||
else if (!uri.includes('.')) { | ||
var response = { | ||
statusCode: 302, | ||
statusDescription: 'Moved Permanently', | ||
headers: { | ||
'location': { value: uri + '/' } | ||
} | ||
}; | ||
return response; | ||
} | ||
|
||
return request; | ||
} |
File renamed without changes.
File renamed without changes.