add post
This commit is contained in:
4
app/views/posts/_post.json.jbuilder
Normal file
4
app/views/posts/_post.json.jbuilder
Normal file
@@ -0,0 +1,4 @@
|
||||
json.extract! post, :id, :content, :user_id, :created_at, :updated_at
|
||||
json.url post_url(post, format: :json)
|
||||
|
||||
json.quoted_post(post.quoted_post)
|
||||
Reference in New Issue
Block a user