I would like to know if a Deno app can return json or a web page depending on the url. If so, which response type would I use? I know for json it's (I'm using Drash):
response_output: "application/json"
(for Drash.Http.Server)
Can I add something to allow returning a web page and, if so, how?
I know to return json it's like this:
this.response.body = myjson;
return this.response;
How can I do the same thing to return a web page?
Thanks for your answers.
response_output:"text/html" and "application/json"
– Perkins