Create config variables in sails.js?

后端 未结 2 1004
傲寒
傲寒 2020-12-12 19:10

I\'m converting an app of mine from Express to sails.js - is there a way I can do something like this in Sails?

From my app.js file in Express:

2条回答
  •  攒了一身酷
    2020-12-12 20:08

    I just made a service which delivers a value:

    maxLimbs: function(){
            var maxLimbs = 15;
            return maxLimbs;
        }
    

提交回复
热议问题