forked from username/flaskpaste
api: remove prefix from index response
This commit is contained in:
@@ -844,7 +844,6 @@ class IndexView(MethodView):
|
|||||||
|
|
||||||
def get(self) -> Response:
|
def get(self) -> Response:
|
||||||
"""Return API information and usage examples."""
|
"""Return API information and usage examples."""
|
||||||
prefix = url_prefix() or "/"
|
|
||||||
url = base_url()
|
url = base_url()
|
||||||
difficulty = get_dynamic_difficulty()
|
difficulty = get_dynamic_difficulty()
|
||||||
pki_enabled = current_app.config.get("PKI_ENABLED", False)
|
pki_enabled = current_app.config.get("PKI_ENABLED", False)
|
||||||
@@ -880,7 +879,6 @@ class IndexView(MethodView):
|
|||||||
response_data: dict[str, Any] = {
|
response_data: dict[str, Any] = {
|
||||||
"name": "FlaskPaste",
|
"name": "FlaskPaste",
|
||||||
"version": VERSION,
|
"version": VERSION,
|
||||||
"prefix": prefix,
|
|
||||||
"endpoints": endpoints,
|
"endpoints": endpoints,
|
||||||
"authentication": {
|
"authentication": {
|
||||||
"anonymous": "Create pastes only (strict limits)",
|
"anonymous": "Create pastes only (strict limits)",
|
||||||
|
|||||||
Reference in New Issue
Block a user