Restore GET /api/hub/profiles/{username} — still actively used

Datadog shows ~37k req/30d to GET /api/hub/profiles/{username} (getHubProfile)
on comfy-ingest, so it is NOT unused — keep it. Only PUT /api/hub/profiles/me
(updateMyHubProfile) is removed: zero traffic and never implemented.
This commit is contained in:
Matt Miller 2026-05-27 17:03:37 -07:00
parent 98405f25b7
commit aa5af2f03f

View File

@ -3690,6 +3690,40 @@ paths:
schema:
$ref: "#/components/schemas/CloudError"
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/hub/profiles/{username}:
get:
operationId: getHubProfile
tags: [hub]
summary: Get a hub profile by username
description: "[cloud-only] Returns the public hub profile for the given username."
x-runtime: [cloud]
parameters:
- name: username
in: path
required: true
schema:
type: string
description: Hub username
responses:
"200":
description: Profile
content:
application/json:
schema:
$ref: "#/components/schemas/HubProfile"
"404":
description: Not found
content:
application/json:
schema:
$ref: "#/components/schemas/CloudError"
'500':
description: Internal server error
content: