Permalink
Browse files

Put the id in the URL.

  • Loading branch information...
1 parent a5076ad commit c74988e2831c80cb230c80addffd82be6c486c61 @Raynes Raynes committed Jan 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/refheap/views/api.clj
@@ -46,7 +46,7 @@
{:error paste}
(api/process-paste paste)))))))
-(defpage [:post "/api/paste/edit"] {:keys [id private contents language username token]}
+(defpage [:post "/api/paste/:id/edit"] {:keys [id private contents language username token]}
(response/json
(if-let [paste (paste/get-paste id)]
(let [user (api/validate-user username token)]

0 comments on commit c74988e

Please sign in to comment.