Adds GET /community/posts, GET /community/posts/{slug}, GET /community/feed.rss,
GET /community/local-feed, POST /community/posts, DELETE /community/posts/{slug},
POST /community/posts/{slug}/fork, and POST /community/posts/{slug}/fork-adapt (501 stub).
Wires init_community_store into main.py lifespan. 7 new tests; 115 total passing.
20 lines
No EOL
1.3 KiB
Python
20 lines
No EOL
1.3 KiB
Python
from fastapi import APIRouter
|
|
from app.api.endpoints import health, receipts, export, inventory, ocr, recipes, settings, staples, feedback, household, saved_recipes, imitate
|
|
|
|
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(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(household.router, prefix="/household", tags=["household"])
|
|
api_router.include_router(saved_recipes.router, prefix="/recipes/saved", tags=["saved-recipes"])
|
|
api_router.include_router(imitate.router, prefix="/imitate", tags=["imitate"])
|
|
|
|
from app.api.endpoints.community import router as community_router
|
|
api_router.include_router(community_router) |