http://www.example.com/js-file, take a look at the following snippet.
You could put this in a function within the RouteController file.
A file exists in
This code can be adapted to serve CSS as well, just change
Content-Type to be