From cf6d547dd2af089533ab3b30f8b1c966019f1cdc Mon Sep 17 00:00:00 2001 From: Tian Yunhao Date: Sun, 9 Jul 2017 01:16:29 +0800 Subject: [PATCH] Make `waiting_judge' POST. --- modules/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/api.js b/modules/api.js index abb06e6..17608fa 100644 --- a/modules/api.js +++ b/modules/api.js @@ -164,7 +164,7 @@ app.post('/api/markdown', async (req, res) => { }); // APIs for judge client -app.get('/api/waiting_judge', async (req, res) => { +app.post('/api/waiting_judge', async (req, res) => { try { if (req.query.session_id !== syzoj.config.judge_token) return res.status(404).send({ err: 'Permission denied' });