Nodejs/Expressjs app structure

后端 未结 3 1617
猫巷女王i
猫巷女王i 2020-12-12 14:58

Say i have this code to separate routes in expressjs:

module.exports = function(express,app,client) {

    app.get(\'/\', function(req,res,next) {
               


        
3条回答
  •  我在风中等你
    2020-12-12 15:20

    In the expressjs download package, there is a folder called "mvc". The author provides a good example for a tiny&efficient mvc structure. Going through the code, you will get much inspiration.

提交回复
热议问题