Refactor server code #38
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Having a separate file for Meteor.methods definitions that mostly will just call functions in other files is kind of pointless.
It is also very stupid to make all the functions we need to call live in the global, top-level namespace.
A better approach would be to put the Meteor.method definitions in the apropriate file in the server folder, and stop defining the functions using this.*
This way the actual functions will be "private" and the methods will be exposed through Meteor.methods. Any functions that are called across files (very few) should at least get their own namespace to prevent polluting the root namespace.
mentioned in commit
3adf0d51f7mentioned in commit
153f6d0421