0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
Commit graph

6 commits

Author SHA1 Message Date
Kuk-Hyun Lee
ddbe4e53b8 Fix rest_pastebin example 2013-08-01 10:56:35 +09:00
Adam Cammack
4e29a49472 Fix rest_pastebin example
Bring the rest_pastebin example in line with REST API changes for
creating resources.
2013-04-12 12:23:33 -05:00
Loïc Hoguin
5a171d0f80 Remove process_post, post_is_create, create_path, created_path callbacks
Instead it will always go through content_types_accepted and it is
up to the resource code to do any creation and to return the created
path if the method is POST and the client should be redirected to the
created resource's location.

This removes the meta value 'put_path' as it is not needed anymore.

This fixes an issue with PATCH where content types were not normalized.
2013-04-11 22:25:36 +02:00
Adam Cammack
a9294e0f50 Improve pastebin example
Reject more malicious paths.
2013-02-16 02:13:19 -06:00
Loïc Hoguin
efbd913326 Merge branch 'add_rest_example' of git://github.com/acammack/cowboy 2013-02-07 18:37:15 +01:00
Adam Cammack
d7b83db92e Add a more involved REST example
A pastebin type application that can optionally highlight the output as
both text and HTML.
2013-02-07 11:00:26 -06:00