Show informative page instead of "Forbidden" when user tries to access API documentation when disabled.

This commit is contained in:
catbref
2020-03-30 09:57:17 +01:00
parent 9156325ffc
commit fa1aa1c8b2
2 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
<!doctype html>
<html>
<head>
<title>API Documentation disabled</title>
</head>
<body>
API documentation pages are currently disabled.
<p>
To enable, add an entry like this to your <tt>settings.json</tt> file:
<p>
<code>"apiDocumentationEnabled": true,</code>
</body>
</html>