mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-03 04:16:27 +00:00
11 lines
328 B
Python
11 lines
328 B
Python
|
from activities.models import Emoji
|
||
|
from api.decorators import identity_required
|
||
|
from api.schemas import CustomEmoji
|
||
|
from api.views.base import api_router
|
||
|
|
||
|
|
||
|
@api_router.get("/v1/custom_emojis", response=list[CustomEmoji])
|
||
|
@identity_required
|
||
|
def emojis(request):
|
||
|
return [e.to_mastodon_json() for e in Emoji.objects.usable()]
|