dotos %!s(int64=8) %!d(string=hai) anos
pai
achega
d1c51ec1cc
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;