Skip to content

chore(dashboard): remove dead STL-serving route#59

Merged
AlienWalker1995 merged 1 commit into
mainfrom
chore/remove-dead-dashboard-stl-route
Jun 30, 2026
Merged

chore(dashboard): remove dead STL-serving route#59
AlienWalker1995 merged 1 commit into
mainfrom
chore/remove-dead-dashboard-stl-route

Conversation

@AlienWalker1995

Copy link
Copy Markdown
Owner

What

Removes the unused /stl/{filename} route (serve_stl) from the dashboard, along with its only-use plumbing:

  • import mimetypes + mimetypes.add_type(..., .stl)
  • from fastapi.responses import FileResponse + its single call site
  • the leftover untracked sample STLs that were sitting in dashboard/static/stl/

Why

The route was added in #52 but nothing in the dashboard frontend references /stl/ or .stl (grep of all non-Python dashboard files returns no matches). STL artifacts (e.g. Gridfinity bins) are delivered via Hermes Deliverable Mode + Discord pass-through, not the dashboard. The route was dead code and the static/stl/ files were untracked cruft — both contradicted the actual delivery path.

This brings the dashboard in line with reality (no dead code, one delivery path).

Validation

  • python -m py_compile dashboard/app.py → OK
  • Post-edit grep for mimetypes|FileResponse|serve_stl|STL_DIR in app.py → no remaining references
  • Pure deletion (15 lines), no behavioral change to any used route

🤖 Generated with Claude Code

The /stl/{filename} route (serve_stl) and its mimetypes/.stl + FileResponse
plumbing were added in #52 but no dashboard frontend references /stl/ or .stl —
STL artifacts are delivered via Hermes Deliverable Mode + Discord, not the
dashboard. Removing the unused route, its only-use imports (mimetypes,
FileResponse), and the leftover untracked sample STLs under static/stl/ so the
code matches the actual delivery path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@AlienWalker1995 AlienWalker1995 merged commit 593fb82 into main Jun 30, 2026
5 checks passed
@AlienWalker1995 AlienWalker1995 deleted the chore/remove-dead-dashboard-stl-route branch June 30, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant