Skip to content

Commit

Permalink
Ok
Browse files Browse the repository at this point in the history
  • Loading branch information
inirey authored Oct 18, 2021
1 parent 0586398 commit 04603e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1157,19 +1157,19 @@ router.get('/download/tiktok2', async(req, res, next) => {
}
})

router.get('/downloader/facebook', async(req, res, next) => {
router.get('/downloader/facebook2', async(req, res, next) => {
const apikey = req.query.apikey;
const url = req.query.url;

if(!url) return res.json(loghandler.noturl)
if(!apikey) return res.json(loghandler.notparam)

if(listkey.includes(apikey)){
fetch(encodeURI(`https://neoxr-api.herokuapp.com/api/fb2?url=${url}&apikey=${neoxr}`))
fetch(encodeURI(`https://neoxr-api.herokuapp.com/api/fb2?url=${url}&apikey=yntkts`))
.then(response => response.json())
.then(hasil => {

var result = hasil.sd;
var result = hasil.data.sd;
res.json({
status : true,
creator : `${creator}`,
Expand All @@ -1192,11 +1192,11 @@ router.get('/downloader/facebook', async(req, res, next) => {
if(!apikey) return res.json(loghandler.notparam)

if(listkey.includes(apikey)){
fetch(encodeURI(`https://neoxr-api.herokuapp.com/api/fb2?url=${url}&apikey=${neoxr}`))
fetch(encodeURI(`https://neoxr-api.herokuapp.com/api/fb2?url=${url}&apikey=yntkts`))
.then(response => response.json())
.then(hasil => {

var result = hasil.hd;
var result = hasil.data.hd;
res.json({
status : true,
creator : `${creator}`,
Expand Down

0 comments on commit 04603e0

Please sign in to comment.