I'd like my addon to import
any file the host app may have added to a certain folder, say /app/pretender/routes
. Is this possible?
I can get the listing of files from my addon's /config/environment
(since it's a node file), and add the listing to my addon's ENV
, but I wasn't able to do anything like
ENV['my-addon']['routes'].forEach(function(route) {
import x from route;
});
Is something like this possible?
Aucun commentaire:
Enregistrer un commentaire