-
Notifications
You must be signed in to change notification settings - Fork 307
"Methods" package #54
Comments
Yeah I dig this. Did you assign it to me since I should build it? |
This is cool because I was planning to make a package almost exactly like this soon, but I'll let you do it. :) Here are a couple other things I was going to include:
Turns on restricted mode so that all the insert/update/remove in the method body go through allow/deny checks. Allows pattern of defining all security in one place, which I do using ongoworks:security pkg. (I also added a Security.can feature to that package recently, which can be used in the method
If
I was also going to try to merge @stubailo's simple:rest stuff in, checking for json-routes pkg if options like |
Yeah, this really would make simple:rest a lot more legit instead of monkey-patching all of DDP! |
@stubailo I was umming and ahhing and then I just assigned you. Wasn't sure about what our decision on outside-of-core coding work assignment was. I figured this one was your baby anyway.
|
@tmeasday that all sounds good. I figured the secret plan might be something like that based on the way the name was written. :) But simple:rest would still need to add other options and should definitely provide a way to disable http route. Actually, in the end this methods pkg would just be a slight rewrite of the simple:rest pkg. |
Yeah the biggest limitation until now was that there was no way to provide options to a single method. I think declaring methods individually will be a lot better than having a |
I think that any So in general, provide an API that |
Build a wrapper around methods, of the form:
The text was updated successfully, but these errors were encountered: