]> cat aescling's git repositories - mastodon.git/commit
Clean up well-known routes/controllers (#1649)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Thu, 13 Apr 2017 11:09:07 +0000 (07:09 -0400)
committerEugen <eugen@zeonfederated.com>
Thu, 13 Apr 2017 11:09:07 +0000 (13:09 +0200)
commit137100dcf38c0da0fe7044a4c92aa06eae02c420
tree076df3ebecd214eaedf30b83bb7036ce63c140ec
parent3a9eb81a8006af0306e8abc54bd8aca8381eee25
Clean up well-known routes/controllers (#1649)

* Add request spec for host meta route returning xml

* Add routing spec for xrd routes

* Update well-known routes

* Move webfinger and host-meta actions to their own controllers
12 files changed:
app/controllers/well_known/host_meta_controller.rb [new file with mode: 0644]
app/controllers/well_known/webfinger_controller.rb [new file with mode: 0644]
app/controllers/xrd_controller.rb [deleted file]
app/views/well_known/host_meta/show.xml.ruby [moved from app/views/xrd/host_meta.xml.ruby with 100% similarity]
app/views/well_known/webfinger/show.json.rabl [moved from app/views/xrd/webfinger.json.rabl with 100% similarity]
app/views/well_known/webfinger/show.xml.ruby [moved from app/views/xrd/webfinger.xml.ruby with 100% similarity]
config/routes.rb
spec/controllers/well_known/host_meta_controller_spec.rb [new file with mode: 0644]
spec/controllers/well_known/webfinger_controller_spec.rb [new file with mode: 0644]
spec/controllers/xrd_controller_spec.rb [deleted file]
spec/requests/host_meta_request_spec.rb [new file with mode: 0644]
spec/routing/well_known_routes_spec.rb [new file with mode: 0644]