mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #24779] refactor: remove unused POST /api/v1/utils/markdown endpoint #115146
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24779
Author: @Classic298
Created: 5/15/2026
Status: 🔄 Open
Base:
dev← Head:remove-unused-utils-markdown-endpoint📝 Commits (1)
86b8874refactor: remove unused POST /api/v1/utils/markdown endpoint📊 Changes
2 files changed (+0 additions, -36 deletions)
View changed files
📝
backend/open_webui/routers/utils.py(+0 -10)📝
src/lib/apis/utils/index.ts(+0 -26)📄 Description
POST /utils/markdown rendered a markdown string to HTML server-side. Its only frontend wrapper, getHTMLFromMarkdown in src/lib/apis/utils/index.ts, is dead: nothing imports or calls it, the route is hit by no other code path, and the path string appears nowhere else in the repo (no direct fetch, no test, no docs). Markdown is rendered client-side in the UI, so this endpoint was redundant.
Fully self-contained removal: the endpoint, its MarkdownForm model, the now-orphaned 'import markdown' in the utils router (used only here), and the dead getHTMLFromMarkdown wrapper. Nothing else depends on any of them.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.