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

前端 未结 5 1033
春和景丽
春和景丽 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:36

    Try this: "Load models, controllers, services, policies and config from specified directories and inject them into the main Sails app."

    https://github.com/leeroybrun/sails-util-mvcsloader

提交回复
热议问题