This is the second post in a four-part series about extending a
resource. The first part discussed
adding support for the HTTP method PUT.
Something about modification of server state screams, "Password
protection!" at me. Let's guard the PUT method
with Basic auth:
Only PUT is protected. If GET
and HEAD should be protected as well, just replace the
body of is_authorized/2 with the body
I need to update my curl command if I don't want to be told I'm
Come back tomorrow for part three, where I add a modicum of atomicity.
Update: part three is up.