Skip to content

Commit

Permalink
Add default cache for categories
Browse files Browse the repository at this point in the history
  • Loading branch information
ddxv committed Oct 22, 2023
1 parent d894e7e commit d4f835e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api_app/controllers/categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def category_overview() -> CategoriesOverview:
class CategoryController(Controller):
path = "/api/categories"

@get(path="/")
@get(path="/", cache=True)
async def get_categories_overview(self) -> CategoriesOverview:
"""
Handles a GET request for a list of categories
Expand Down

0 comments on commit d4f835e

Please sign in to comment.