Create API to get files from random courses

For now, let's use edge to test out this API (for copyright compliance surveys).
Nice! I didn't know about that module.

Is there a way I can apply that only to the `query` action? The other one is not an API request.