Hi,
I was going through the Routes Docs, but couldn’t find a way to route a specific url to a file. Similar to this concept :
$routes->connect(
'/government',
['controller' => 'Pages', 'action' => 'display', 5]
);
But looking for something like this :
// Accessing /government/file.txt will serve the file from webroot/specialFiles/file.txt
$routes->connect(
'/government/*',
['folder' => 'specialFiles', ]
);