You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make a custom quote message in my .bashrc file, but each response is JSON. I tried setting the Content-Type header to text/html, but no luck.
My feature request
Change the response based on Content-Type.
Example
The example route is /quotes/random
If Content-type is text/html, instead of returning
[{"_id":"_dfC0aL_AGD4","content":"Great ideas often receive violent opposition from mediocre minds.","author":"Albert Einstein","tags":["Famous Quotes","Technology"],"authorSlug":"albert-einstein","length":65,"dateAdded":"2019-08-03","dateModified":"2023-04-14"}]
return
"Great ideas often receive violent opposition from mediocre minds." - Albert Einstein
The text was updated successfully, but these errors were encountered:
I'm trying to make a custom quote message in my .bashrc file, but each response is JSON. I tried setting the Content-Type header to
text/html
, but no luck.My feature request
Change the response based on Content-Type.
Example
The example route is /quotes/random
The text was updated successfully, but these errors were encountered: