How to create a route that opens an external file?
As an example I have a xml file in my S3 bucket.
I need to create a route to open that file from my website. Like if I go to
http://my_web_site_url.com/file.xml, it should view the file in my S3 bucket.
Is there a way to achieve this without calling a controller from the route file? Like can I say to open this file from this url in the routing file.
my_module.index: path: '/file.xml' defaults: _controller: 'Drupal\my_module\Controller\moduleController::view' _title: 'file View' requirements: _permission: 'access content'