- Backend: new /api/v1/feedback/attach endpoint uploads image to Forgejo as an issue asset, then pins it as a comment so the screenshot is visible inline on the issue - Frontend: file input in feedback form (all types, max 5 MB) with inline thumbnail preview and remove button - Attach call is non-fatal: if upload fails after issue creation, the issue is still filed and the user sees success - Screenshot state clears on modal reset Closes #82
22 lines
1.7 KiB
Python
22 lines
1.7 KiB
Python
from fastapi import APIRouter
|
|
from app.api.endpoints import health, receipts, export, inventory, ocr, recipes, settings, staples, feedback, feedback_attach, household, saved_recipes, imitate, meal_plans, orch_usage
|
|
from app.api.endpoints.community import router as community_router
|
|
|
|
api_router = APIRouter()
|
|
|
|
api_router.include_router(health.router, prefix="/health", tags=["health"])
|
|
api_router.include_router(receipts.router, prefix="/receipts", tags=["receipts"])
|
|
api_router.include_router(ocr.router, prefix="/receipts", tags=["ocr"])
|
|
api_router.include_router(export.router, tags=["export"])
|
|
api_router.include_router(inventory.router, prefix="/inventory", tags=["inventory"])
|
|
api_router.include_router(saved_recipes.router, prefix="/recipes/saved", tags=["saved-recipes"])
|
|
api_router.include_router(recipes.router, prefix="/recipes", tags=["recipes"])
|
|
api_router.include_router(settings.router, prefix="/settings", tags=["settings"])
|
|
api_router.include_router(staples.router, prefix="/staples", tags=["staples"])
|
|
api_router.include_router(feedback.router, prefix="/feedback", tags=["feedback"])
|
|
api_router.include_router(feedback_attach.router, prefix="/feedback", tags=["feedback"])
|
|
api_router.include_router(household.router, prefix="/household", tags=["household"])
|
|
api_router.include_router(imitate.router, prefix="/imitate", tags=["imitate"])
|
|
api_router.include_router(meal_plans.router, prefix="/meal-plans", tags=["meal-plans"])
|
|
api_router.include_router(orch_usage.router, prefix="/orch-usage", tags=["orch-usage"])
|
|
api_router.include_router(community_router)
|