How to create a normal sails model without being in the models folder

前端 未结 5 1018
春和景丽
春和景丽 2021-02-13 05:50

So,

I\'m in the middle of implementing a plugin api for my application, and the plugins can have their own models, imagine this.

SimplePlugin = {
    pl         


        
5条回答
  •  囚心锁ツ
    2021-02-13 06:31

    surprised sails doesn't support this in 2018: I have continued the above package with a fork ( @eyn answer) with updates that work for sails v1.x.x.

    https://github.com/emahuni/sails-util-micro-apps

    I changed it to that coz I am changing a lot of thing in that package. Instead of loading just models and controllers i want to it to load whole apps, mini-apps for a micro service architecture in sails. This is such that you can make mini-apps that can be joined together to form one large app out of reusable apis code.

提交回复
热议问题