From 4a86e0f49608805b13db188fbeb7a824c44c291b Mon Sep 17 00:00:00 2001 From: Ayberk Tandogan Date: Thu, 19 Mar 2020 17:04:26 +0300 Subject: [PATCH] =?UTF-8?q?Sistem=20yollar=C4=B1=20kapat=C4=B1ld=C4=B1.=20?= =?UTF-8?q?Indexteki=20fazlal=C4=B1k=20yollar=20temizlendi.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- routes/api/administrative.js | 4 +++- routes/api/index.js | 19 ------------------- 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index f020108..1784289 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "forfansubsback", - "version": "2.5.1", + "version": "2.6.0", "description": "", "main": "server.js", "scripts": { diff --git a/routes/api/administrative.js b/routes/api/administrative.js index d824bce..445f547 100644 --- a/routes/api/administrative.js +++ b/routes/api/administrative.js @@ -15,6 +15,8 @@ const axios = require('axios') dump().then(result => res.status(200).json(result)) }) */ +/* + // @route GET api/administrative/force-header-update // @desc Force update header images // @access Public @@ -309,5 +311,5 @@ router.get('/force-cf-cache-purge', (req, res) => { }).catch(_ => res.status(403).json({ 'err': 'Yetkisiz kullanım!' })) }) - +*/ module.exports = router; \ No newline at end of file diff --git a/routes/api/index.js b/routes/api/index.js index 9130573..c1ad5a4 100644 --- a/routes/api/index.js +++ b/routes/api/index.js @@ -140,25 +140,6 @@ router.get('/header-getir/:link', (req, res) => { }) }) -// @route GET api/mos-konu-getir -// @desc Get manga synopsis from MOS -// @access Public -router.get('/mos-konu-getir/:name', (req, res) => { - axios.get('https://puzzmos.com/manga/' + slugify(req.params.name)) - .then(resp => { - const dom = new JSDOM(resp.data) - if (dom.window.document.querySelector("#blog-page").querySelector(".col-md-9").querySelector("p") !== null) { - res.status(200).json({ 'konu': dom.window.document.querySelector("#blog-page").querySelector(".col-md-9").querySelector("p").textContent, 'mos_link': 'https://puzzmos.com/manga/' + slugify(req.params.name) }) - } - else { - res.status(404).json({ 'data': 'Konu MOŞ\'da bulunamadı' }) - } - }) - .catch(err => { - res.status(404).json({ 'data': 'Konu MOŞ\'da bulunamadı' }) - }) -}) - // @route GET api/genre-list // @desc Get genre-list // @access Public