Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
Sistem yolları kapatıldı. Indexteki fazlalık yollar temizlendi.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayberktandogan committed Mar 19, 2020
1 parent 915cade commit 4a86e0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "forfansubsback",
"version": "2.5.1",
"version": "2.6.0",
"description": "",
"main": "server.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion routes/api/administrative.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -309,5 +311,5 @@ router.get('/force-cf-cache-purge', (req, res) => {
}).catch(_ => res.status(403).json({ 'err': 'Yetkisiz kullanım!' }))
})

*/
module.exports = router;
19 changes: 0 additions & 19 deletions routes/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a86e0f

Please sign in to comment.