dev: Improve Docs Generation (#4402)

Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
Michael Genson
2024-10-21 10:01:40 -05:00
committed by GitHub
parent 674ad237f1
commit a7c8b33cca
7 changed files with 30 additions and 11 deletions

View File

@@ -6,9 +6,9 @@ prefix = "/recipes"
router = APIRouter()
router.include_router(recipe_crud_routes.router_exports)
router.include_router(recipe_crud_routes.router)
router.include_router(recipe_crud_routes.router_exports, tags=["Recipe: Exports"])
router.include_router(recipe_crud_routes.router, tags=["Recipe: CRUD"])
router.include_router(comments.router, prefix=prefix, tags=["Recipe: Comments"])
router.include_router(bulk_actions.router, prefix=prefix, tags=["Recipe: Bulk Exports"])
router.include_router(bulk_actions.router, prefix=prefix, tags=["Recipe: Bulk Actions"])
router.include_router(shared_routes.router, prefix=prefix, tags=["Recipe: Shared"])
router.include_router(timeline_events.events_router, prefix=prefix, tags=["Recipe: Timeline"])

View File

@@ -17,7 +17,7 @@ from mealie.schema.recipe.recipe_bulk_actions import (
from mealie.schema.response.responses import SuccessResponse
from mealie.services.recipe.recipe_bulk_service import RecipeBulkActionsService
router = APIRouter(prefix="/bulk-actions", tags=["Recipe: Bulk Actions"])
router = APIRouter(prefix="/bulk-actions")
@controller(router)

View File

@@ -123,7 +123,7 @@ class FormatResponse(BaseModel):
jinja2: list[str]
router_exports = UserAPIRouter(prefix="/recipes", tags=["Recipe: Exports"])
router_exports = UserAPIRouter(prefix="/recipes")
@controller(router_exports)
@@ -176,7 +176,7 @@ class RecipeExportController(BaseRecipeController):
)
router = UserAPIRouter(prefix="/recipes", tags=["Recipe: CRUD"], route_class=MealieCrudRoute)
router = UserAPIRouter(prefix="/recipes", route_class=MealieCrudRoute)
@controller(router)