api: remove prefix from index response
Some checks failed
CI / Lint & Format (push) Successful in 23s
CI / Security Scan (push) Successful in 21s
CI / Advanced Security Tests (push) Successful in 17s
CI / Memory Leak Check (push) Successful in 20s
CI / Security Tests (push) Successful in 25s
CI / Unit Tests (push) Successful in 33s
CI / SBOM Generation (push) Successful in 21s
CI / Build & Push Image (push) Successful in 11s
CI / Harbor Vulnerability Scan (push) Failing after 8s
Some checks failed
CI / Lint & Format (push) Successful in 23s
CI / Security Scan (push) Successful in 21s
CI / Advanced Security Tests (push) Successful in 17s
CI / Memory Leak Check (push) Successful in 20s
CI / Security Tests (push) Successful in 25s
CI / Unit Tests (push) Successful in 33s
CI / SBOM Generation (push) Successful in 21s
CI / Build & Push Image (push) Successful in 11s
CI / Harbor Vulnerability Scan (push) Failing after 8s
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