my Grails app generates files in a folder (e.g. “output”).
How can I make that folder public, in order to expose the output files through URLs like:
http://localhost:8080/MyGrailsApp/output/myOutputFile1.xml
http://localhost:8080/MyGrailsApp/output/myOutputFile2.xml
Cheers!
This code is not perfect or tested, just typed it in here, but it should get you headed in the right direction
create a controller called OutputController.groovy
update url mappings file