takahe/api/views/trends.py
2023-02-10 16:10:53 -07:00

38 lines
737 B
Python

from django.http import HttpRequest
from api import schemas
from api.decorators import identity_required
from hatchway import api_view
@identity_required
@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 []
@identity_required
@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 []
@identity_required
@api_view.get
def trends_links(
request: HttpRequest,
limit: int = 10,
offset: int | None = None,
) -> list:
# We don't implement this yet
return []