index.js 289 B

123456789101112131415
  1. var express = require('express');
  2. var router = express.Router();
  3. /* GET home page. */
  4. router.get('/', function(req, res, next) {
  5. res.render('index', { title: 'Express' });
  6. });
  7. router.post('/files',function(req,res,next){
  8. console.log("ok")
  9. res.send(200)
  10. })
  11. module.exports = router;