Update index.js

This commit is contained in:
Jyotirmoy Bandyopadhayaya 2020-10-27 11:07:58 +05:30 committed by GitHub
parent 978beb49a9
commit 6686869586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 1 deletions

View File

@ -14,9 +14,22 @@ async function handleRequest(request) {
})
else
return new Response(
'<html><head><ttile>DF Community URL Shortner</title></head><body>404 not found !! Check all possible at https://links.dfcommunity.win/all-urls</body></html>',
`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DF Community URL Shortner</title>
</head>
<body>
404 not found !! Check all possible at
https://links.dfcommunity.win/all-urls
</body>
</html>
`,
{
status: 404,
headers: { 'content-type': 'text/html' },
},
)
}