|
|
|
@ -26,6 +26,7 @@ app.get('/', (req, res) => {
|
|
|
|
|
url = req.query.url;
|
|
|
|
|
res.header("Access-Control-Allow-Origin", '*');
|
|
|
|
|
res.header("Access-Control-Expose-Headers", 'X-Title');
|
|
|
|
|
res.header("Content-Type", 'text/markdown');
|
|
|
|
|
if (url && validURL(url)) {
|
|
|
|
|
read_url(url, res);
|
|
|
|
|
} else {
|
|
|
|
|