Browse Source

Merge branch 'dev' of https://github.com/KomodoPlatform/Agama into dev

custom-ac-example
pbca26 7 years ago
parent
commit
5b2567359c
  1. 2
      routes/shepherd/pin.js

2
routes/shepherd/pin.js

@ -146,7 +146,7 @@ module.exports = (shepherd) => {
});
shepherd.get('/getpinlist', (req, res, next) => {
if (shepherd.checkToken(req.body.token)) {
if (shepherd.checkToken(req.query.token)) {
if (fs.existsSync(`${shepherd.agamaDir}/shepherd/pin`)) {
fs.readdir(`${shepherd.agamaDir}/shepherd/pin`, (err, items) => {
let _pins = [];

Loading…
Cancel
Save