]> cat aescling's git repositories - mastodon.git/commit
Add API to upload media attachments
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 5 Sep 2016 15:46:36 +0000 (17:46 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 5 Sep 2016 15:46:36 +0000 (17:46 +0200)
commitae1fac006206ab28cd7cba63ab85c07a27f3d606
tree61f9cd45d7ed804eab85ae6a28cee584af90bfe3
parent05001d54d15c486caa6cebe9462222d37d87576d
Add API to upload media attachments
19 files changed:
app/assets/stylesheets/api/media.scss [new file with mode: 0644]
app/controllers/api/media_controller.rb [new file with mode: 0644]
app/helpers/api/media_helper.rb [new file with mode: 0644]
app/models/account.rb
app/models/media_attachment.rb [new file with mode: 0644]
app/models/status.rb
app/views/api/media/create.rabl [new file with mode: 0644]
config/environments/test.rb
config/routes.rb
db/migrate/20160905150353_create_media_attachments.rb [new file with mode: 0644]
db/schema.rb
spec/controllers/api/media_controller_spec.rb [new file with mode: 0644]
spec/controllers/api/statuses_controller_spec.rb
spec/fabricators/media_attachment_fabricator.rb [new file with mode: 0644]
spec/fixtures/files/attachment.jpg [new file with mode: 0644]
spec/helpers/api/media_helper_spec.rb [new file with mode: 0644]
spec/models/media_attachment_spec.rb [new file with mode: 0644]
spec/rails_helper.rb
spec/spec_helper.rb