File download with dynamic link

May I have more specific instruction, because from the step above, the link to the file is static. I've tried to use $_GET to pass the dynamic file to the file path on click event e.g. /assets/resources/{{$_GET.file}} but the route didn't work.