summaryrefslogtreecommitdiff
path: root/src/web/service
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-05-25 14:52:22 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-05-25 14:52:22 +0900
commit3f54fb8a2a46da9ee24c893f70c2635a5ca33f9a (patch)
treef587946eb2b5e3f9b3c22a6924b7e8cfbbf0bc28 /src/web/service
parent[Client] Fix bug (diff)
downloadmisskey-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.ts15
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));
- }
- });
-};