mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-21 10:15:04 +02:00
refactor(api): rename /filaments/ to /filament-catalog/ for clarity (#427)
The /filaments/ endpoint manages material type definitions (cost, temps, density) but shares its name with the UI's "Filament" page which shows the spool inventory (/inventory/spools/). This caused users to expect the API to return their spool inventory. Rename to /filament-catalog/ to make the distinction clear. No frontend behavior change — these API methods are defined but unused in the UI.
This commit is contained in:
@@ -14,7 +14,7 @@ from backend.app.schemas.filament import (
|
||||
FilamentUpdate,
|
||||
)
|
||||
|
||||
router = APIRouter(prefix="/filaments", tags=["filaments"])
|
||||
router = APIRouter(prefix="/filament-catalog", tags=["filament-catalog"])
|
||||
|
||||
|
||||
@router.get("/", response_model=list[FilamentResponse])
|
||||
|
||||
Reference in New Issue
Block a user