parent
10ec344c38
commit
ce97090936
1
index.js
1
index.js
|
@ -26,6 +26,7 @@ app.get('/', (req, res) => {
|
||||||
url = req.query.url;
|
url = req.query.url;
|
||||||
res.header("Access-Control-Allow-Origin", '*');
|
res.header("Access-Control-Allow-Origin", '*');
|
||||||
res.header("Access-Control-Expose-Headers", 'X-Title');
|
res.header("Access-Control-Expose-Headers", 'X-Title');
|
||||||
|
res.header("Content-Type", 'text/markdown');
|
||||||
if (url && validURL(url)) {
|
if (url && validURL(url)) {
|
||||||
read_url(url, res);
|
read_url(url, res);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue