module.exports = function (app) {
app.get('./todo', function (req, res) {});
app.post('./todo', function (req, res) {});
app.delete('./todo', function(req , res){});
};
I'm using WebStorm 2017.2.5 and Express package 4.16.3.
My issue is get
method works fine but post
and delete
got "unresolved function or method post
" warning.
Any insight is much appreciated.