open-webui/backend/open_webui
Classic298 b9911c8bc6
refactor: remove unused GET /prompts/command/{command} endpoint (#24782)
The lookup-prompt-by-command endpoint's only frontend wrapper,
getPromptByCommand, is dead: nothing imports or calls it, the path is
referenced nowhere else, and the route handler has no internal caller
(slash-command resolution happens client-side from the loaded prompt
list). Removes the route handler, its section header, and the dead
wrapper.

The shared Prompts.get_prompt_by_command data-layer method is kept: it
is still used by create/update prompt validation (prompts.py:175, 275,
340). PromptAccessResponse and AccessGrants are untouched.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 00:28:07 +04:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal refac: modernize type annotations (PEP 604 / PEP 585) 2026-05-12 17:10:15 +09:00
migrations fix: tag composite pk in migration (#24722) 2026-05-15 09:31:27 +09:00
models refactor: remove unused DELETE /chats/{id}/tags/all endpoint (#24785) 2026-05-19 21:03:58 +04:00
retrieval fix: mitigate DNS rebinding in web loader fetch paths (#24759) 2026-05-19 23:57:12 +04:00
routers refactor: remove unused GET /prompts/command/{command} endpoint (#24782) 2026-05-20 00:28:07 +04:00
socket refac 2026-05-13 12:44:12 +09:00
static refac 2026-05-12 03:04:35 +09:00
storage refac: modernize type annotations (PEP 604 / PEP 585) 2026-05-12 17:10:15 +09:00
tools fix: log expected fetch/transcript/tool-server failures as warnings (#24903) 2026-05-19 21:55:40 +04:00
utils refac 2026-05-20 00:22:27 +04:00
__init__.py refac 2026-05-09 02:38:08 +09:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py enh: linkup 2026-05-19 21:54:38 +04:00
constants.py refac: modernize type annotations (PEP 604 / PEP 585) 2026-05-12 17:10:15 +09:00
env.py refac 2026-05-20 00:22:27 +04:00
functions.py fix: emit [DONE] for AsyncGenerator pipe returns (#24763) 2026-05-19 22:07:56 +04:00
main.py enh: linkup 2026-05-19 21:54:38 +04:00
tasks.py refac: modernize type annotations (PEP 604 / PEP 585) 2026-05-12 17:10:15 +09:00