api: remove prefix from index response

This commit is contained in:
Username
2026-01-19 19:40:04 +01:00
parent 402df5f535
commit 756d83e066

View File

@@ -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)",