# Controller for viewing a repository's file structureclassProjects::FindFileController<Projects::ApplicationControllerincludeExtractsPathincludeActionView::Helpers::SanitizeHelperincludeTreeHelperbefore_action:require_non_empty_projectbefore_action:assign_ref_varsbefore_action:authorize_download_code!defshowreturnrender_404unless@repository.commit(@ref)respond_todo|format|format.htmlendenddeflistfile_paths=@repo.ls_files(@ref)respond_todo|format|format.json{renderjson: file_paths}endendend