stretchr / goweb

A lightweight RESTful web framework for Go
632 stars 61 forks source link

added configurable HTTP methods and made PATCH used for updates - Fixes #59 #60

Closed matryer closed 10 years ago

matryer commented 10 years ago

also see https://github.com/stretchr/goweb/wiki/Using-different-HTTP-Methods-when-mapping-controllers

justinruggles commented 10 years ago

This is a great solution. Although with this change I'll have to manually set UpdateMany to PUT since there is no ReplaceMany (which is what I really need). At least it's only one line of code though.

justinruggles commented 10 years ago

It seems to not be calling Before() before Update()

matryer commented 10 years ago

Can you prove that with a test?

What does your Before mapping code look like?

On 18 Oct 2013, at 15:10, Justin Ruggles notifications@github.com wrote:

It seems to not be calling Before() before Update()

— Reply to this email directly or view it on GitHub.

justinruggles commented 10 years ago

Sorry, I think it was an unrelated bug on my end that kept me from seeing my log messages in Before().