Permalink
Browse files

Add GET /posts/:entity/:id/attachments/:name

refs #53
  • Loading branch information...
1 parent e58be5e commit 365bc40fc39b1f095f4c191f40cf8389ce971179 Jesse Stuart committed Dec 15, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/tentd/api/posts.rb
@@ -553,6 +553,12 @@ def action(env)
b.use GetAttachment
end
+ get '/posts/:post_id_entity/:post_id/attachments/:attachment_name' do |b|
+ b.use GetActualId
+ b.use GetOne
+ b.use GetAttachment
+ end
+
get '/posts' do |b|
b.use GetActualId
b.use GetFeed

0 comments on commit 365bc40

Please sign in to comment.