Is there a way to serve a URL to receive a file?

Is there a way I can serve a specific route, say “/receive_file” to receive a POST with a file upload and process it?

There is limited support for serving files: