Closed smart--petea closed 10 years ago
@smart--petea checkout branch https://github.com/deleteman/vatican/tree/v1.3 I've added a new syntax for the generator, that will allow you to specify the method to use (per ticket https://github.com/deleteman/vatican/issues/10) that should take care of writing the correct method, instead of "??"
Will be there support for 'delete' method?
Yes of course, why do you ask?
the regexp (from handlerParser.js)
var regExp = /@endpoint ?\((url:.+) (method: (?:get|put|post)) ?(name:.+)?\).*\n(.*)\(/gim;
only support three method: get, put and post
Oh wow, I missed that one! Thanks for pointing it out @smart--petea !! I've added the missing method in this commit (for branch 1.3): https://github.com/deleteman/vatican/commit/4a4fdafed39266d997984b2fb24143e79ccef702
Thanks again!
I generate a handler file. I didn't any change in it. I run the project. All it's ok, rather the method for each action is by default equal with ??.
Maybe it is needed to validate the method. For ex:
And if not to log this as error.