Create a response with a JavaScript file response.
It receives a string with the JavaScript content and set the Content-Type
header to application/javascript; charset=utf-8 always.
This is useful to dynamically create a JS file from a Resource Route.
Create a response with a JavaScript file response. It receives a string with the JavaScript content and set the Content-Type header to
application/javascript; charset=utf-8
always.This is useful to dynamically create a JS file from a Resource Route.