Skip to content

Commit

Permalink
views: remove comment about toplevel keys which is no longer valid
Browse files Browse the repository at this point in the history
  • Loading branch information
robvdl committed Mar 13, 2024
1 parent 6eb0a4f commit 300b0de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/sambal/views/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@

@view_config(context=RootFactory, permission="read", renderer="json")
def root_view(context, request):
"""View for the root node (RootFactory).
This is the view for "/" or home. Only show toplevel keys, or it just
ends up showing everything.
"""
"""View for the root node (RootFactory)."""
return {field: resource for field, resource in context.items()}


Expand Down

0 comments on commit 300b0de

Please sign in to comment.