takahe/api/views/trends.py

39 lines
749 B
Python
Raw Normal View History

2023-02-10 23:10:53 +00:00
from django.http import HttpRequest
from hatchway import api_view
2023-02-10 23:10:53 +00:00
from api import schemas
2023-02-19 18:37:02 +00:00
from api.decorators import scope_required
2023-02-10 23:10:53 +00:00
2023-02-19 18:37:02 +00:00
@scope_required("read")
2023-02-10 23:10:53 +00:00
@api_view.get
def trends_tags(
request: HttpRequest,
limit: int = 10,
offset: int | None = None,
) -> list[schemas.Tag]:
# We don't implement this yet
return []
2023-02-19 18:37:02 +00:00
@scope_required("read")
2023-02-10 23:10:53 +00:00
@api_view.get
def trends_statuses(
request: HttpRequest,
limit: int = 10,
offset: int | None = None,
) -> list[schemas.Status]:
# We don't implement this yet
return []
2023-02-19 18:37:02 +00:00
@scope_required("read")
2023-02-10 23:10:53 +00:00
@api_view.get
def trends_links(
request: HttpRequest,
limit: int = 10,
offset: int | None = None,
) -> list:
# We don't implement this yet
return []