mirror of
https://github.com/etesync/server
synced 2024-12-29 10:48:07 +00:00
Conform to naming conventions.
This commit is contained in:
parent
92f6ccbc28
commit
611c0f3b0a
@ -285,7 +285,7 @@ async def create(data: CollectionIn, user: User = Depends(get_authenticated_user
|
||||
|
||||
|
||||
@collection_router.get("/{uid}/")
|
||||
def get_collection(uid: str, user: User = Depends(get_authenticated_user), prefetch: Prefetch = PrefetchQuery):
|
||||
def collection_get(uid: str, user: User = Depends(get_authenticated_user), prefetch: Prefetch = PrefetchQuery):
|
||||
obj = get_collection_queryset(user, default_queryset).get(uid=uid)
|
||||
ret = CollectionOut.from_orm_context(obj, Context(user, prefetch))
|
||||
return MsgpackResponse(ret)
|
||||
|
Loading…
Reference in New Issue
Block a user