You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

23 lines
374 B

const express = require('express');
const router = express.Router();
router.get('/', function(req, res, next) {
res.send({
title: '自娱自乐',
user: {
name: 'Index',
tags: ['art', 'template', 'nodejs']
}
});
});
router.post('/ding', function(req, res, next) {
res.send({state:'ok', msg:'发送成功'})
});
module.exports = router;