浏览代码

fix post url

dotos 8 年之前
父节点
当前提交
d1c51ec1cc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      routes/joke.js

+ 2 - 2
routes/joke.js

@@ -68,9 +68,9 @@ router.post('/', urlencodedParser, function(req, res, next) {
     getJOKE(req, res, next, url);
 });
 /**
- * 随机获取
+ * 随机获取 
  */
-router.post('/rand', function(req, res, next) {
+router.post('/rand', urlencodedParser, function(req, res, next) {
     var type = req.body.type || 'pic';
     if (type !== 'pic') {
         type = null;