moduleAPI# Projects artifacts APIclassArtifacts<Grape::APIbeforedoauthenticate!authorize!(:read_build,user_project)endresource:projectsdo# Download the artifacts file from ref_name and build_name## Parameters:# id (required) - The ID of a project# ref_name (required) - The ref from repository# build_name (required) - The name for the build# Example Request:# GET /projects/:id/artifacts/:ref_name/:build_nameget':id/artifacts/:ref_name/:build_name',requirements: {ref_name: /.+/}dobuilds=user_project.builds_for(params[:build_name],params[:ref_name])latest_build=builds.success.latest.firstiflatest_buildredirect("/projects/#{user_project.id}/builds/#{latest_build.id}/artifacts")elsenot_found!endendendendend