Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
const Category = require('../models').Category; | |
module.exports = { | |
create: function(req,res){ | |
Category.create({ | |
title: req.body.title, | |
color: req.body.color | |
}).then(result =>{ | |
res.json(result); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000