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:
|
||||
"""Return API information and usage examples."""
|
||||
prefix = url_prefix() or "/"
|
||||
url = base_url()
|
||||
difficulty = get_dynamic_difficulty()
|
||||
pki_enabled = current_app.config.get("PKI_ENABLED", False)
|
||||
@@ -880,7 +879,6 @@ class IndexView(MethodView):
|
||||
response_data: dict[str, Any] = {
|
||||
"name": "FlaskPaste",
|
||||
"version": VERSION,
|
||||
"prefix": prefix,
|
||||
"endpoints": endpoints,
|
||||
"authentication": {
|
||||
"anonymous": "Create pastes only (strict limits)",
|
||||
|
||||
Reference in New Issue
Block a user