@blueprint.route('<STR_LIT>', methods=['<STR_LIT:GET>', '<STR_LIT:POST>'])<EOL>@login_required<EOL>@pass_community<EOL>@permission_required('<STR_LIT>')<EOL>def curate(community):
if request.method == '<STR_LIT:POST>':<EOL><INDENT>action = request.json.get('<STR_LIT:action>')<EOL>recid = request.json.get('<STR_LIT>')<EOL>if not recid:<EOL><INDENT>abort(<NUM_LIT>)<EOL><DEDENT>if action not in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>abort(<NUM_LIT>)<EOL><DEDENT>resolver = Resolver(<EOL>pid_type='<STR_LIT>', object_type='<STR_LIT>', getter=Record.get_record)<EOL>pid, record = resolver.resolve(recid)<EOL>if action == "<STR_LIT>":<EOL><INDENT>community.accept_record(record)<EOL><DEDENT>elif action == "<STR_LIT>":<EOL><INDENT>community.reject_record(record)<EOL><DEDENT>elif action == "<STR_LIT>":<EOL><INDENT>community.remove_record(record)<EOL><DEDENT>record.commit()<EOL>db.session.commit()<EOL>RecordIndexer().index_by_id(record.id)<EOL>return jsonify({'<STR_LIT:status>': '<STR_LIT:success>'})<EOL><DEDENT>ctx = {'<STR_LIT>': community}<EOL>return render_template(<EOL>current_app.config['<STR_LIT>'],<EOL>**ctx<EOL>)<EOL>
Index page with uploader and list of existing depositions.

    :param community_id: ID of the community to curate.