This commit is contained in:
@@ -16,6 +16,10 @@ export default {
|
||||
return json({ error: 'method_not_allowed' }, 405);
|
||||
}
|
||||
|
||||
if (url.pathname === '/' || url.pathname === '/index.html') {
|
||||
return Response.redirect(new URL('/egbim/', url), 301);
|
||||
}
|
||||
|
||||
if (matchesConfiguredPath(url.pathname, env.INTERNAL_ONLY_PREFIXES) && !isInternalRequest(request, env)) {
|
||||
return json({ error: 'not_found' }, 404);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user