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.
riskcloudrun/routes/index.js

14 lines
288 B

4 years ago
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.json({'name':'test'})
});
router.post('/', function(req, res, next) {
console.info(req.body)
4 years ago
res.json({'name':'666'})
4 years ago
});
4 years ago
module.exports = router;