Skip to content

Commit

Permalink
Tempek
Browse files Browse the repository at this point in the history
  • Loading branch information
inirey authored Nov 18, 2021
1 parent d1b2d3a commit 7a6e4be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Akhir Pesan Error

router.use(favicon(__path + "/views/favicon.ico"));

const listkey = ["apirey", "ditofficial"];
const listkey = ["apirey", "APIKEY", "ditofficial"];

router.post("/apikey", async (req, res, next) => {
const key = req.query.key;
Expand Down Expand Up @@ -351,7 +351,7 @@ router.get('/game/tebaklirik', async (req, res, next) => {
if(!Apikey) return res.json(loghandler.notparam)
if(listkey.includes(Apikey)){
var question = JSON.parse(
fs.readFileSync(__path + '/data/tebakkimia.json')
fs.readFileSync(__path + '/data/tebaklirik.json')
)
res
.status(200)
Expand Down

0 comments on commit 7a6e4be

Please sign in to comment.