mirror of
https://github.com/mealie-recipes/mealie.git
synced 2024-12-22 03:51:21 -08:00
68f7efc177
* fix #1144 * fix type checks * refactor test routes package * fix #1208 * unify test routes into module
20 lines
391 B
Python
20 lines
391 B
Python
from ._base import RoutesBase, v1
|
|
|
|
|
|
class RoutesOrganizerBase(RoutesBase):
|
|
@classmethod
|
|
def slug(cls, slug: str) -> str:
|
|
return f"{cls.base}/slug/{slug}"
|
|
|
|
|
|
class Tools(RoutesOrganizerBase):
|
|
base = v1("/organizers/tools")
|
|
|
|
|
|
class Tags(RoutesOrganizerBase):
|
|
base = v1("/organizers/tags")
|
|
|
|
|
|
class Categories(RoutesOrganizerBase):
|
|
base = v1("/organizers/categories")
|