dotos vor 8 Jahren
Ursprung
Commit
d1c51ec1cc
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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;