diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-05-25 14:52:22 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-05-25 14:52:22 +0900 |
| commit | 3f54fb8a2a46da9ee24c893f70c2635a5ca33f9a (patch) | |
| tree | f587946eb2b5e3f9b3c22a6924b7e8cfbbf0bc28 /src/web/service | |
| parent | [Client] Fix bug (diff) | |
| download | misskey-3f54fb8a2a46da9ee24c893f70c2635a5ca33f9a.tar.gz misskey-3f54fb8a2a46da9ee24c893f70c2635a5ca33f9a.tar.bz2 misskey-3f54fb8a2a46da9ee24c893f70c2635a5ca33f9a.zip | |
Use external service for rss xml to json
Diffstat (limited to 'src/web/service')
| -rw-r--r-- | src/web/service/rss-proxy.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/web/service/rss-proxy.ts b/src/web/service/rss-proxy.ts deleted file mode 100644 index 6819427ff8..0000000000 --- a/src/web/service/rss-proxy.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as express from 'express'; -import * as request from 'request'; -import xml2json = require('xml2json'); - -module.exports = (req: express.Request, res: express.Response) => { - const url: string = req.body.url; - - request(url, (err, response, xml) => { - if (err) { - res.sendStatus(500); - } else { - res.send(xml2json.toJson(xml)); - } - }); -}; |