else:
return serialize_policy(db_policy)
# TODO: 0. if at least provider exists (beyond the node itself), we should not create default policies in lua
# TODO: 1. before creating a policy for a resource, subscribe to it
# (should be done in lua)
@router.post("/",
response_class=Response,
status_code=status.HTTP_201_CREATED,
(should be done in lua)
https://github.com/orchestracities/anubis/blob/1bf8f99724890027d9c2de4d38c258fcb987a90b/anubis-management-api/anubis/policies/routers.py#L419