Move the notes api methods into a controller in the api namespace
authorAndy Allan <git@gravitystorm.co.uk>
Sun, 24 Feb 2019 14:46:25 +0000 (15:46 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Thu, 28 Feb 2019 16:12:28 +0000 (17:12 +0100)
commitb4dbf6233c3785e62af5bd313381f1844e5bbc19
tree09775224777e9c1fd34937cf057b01570249e1e6
parent4b4c5aac2f6e338fb043cd4d2a031c4bd6ee1b05
Move the notes api methods into a controller in the api namespace
23 files changed:
app/controllers/api/notes_controller.rb [new file with mode: 0644]
app/controllers/notes_controller.rb
app/helpers/note_helper.rb
app/views/api/notes/_comment.html.erb [moved from app/views/notes/_comment.html.erb with 100% similarity]
app/views/api/notes/_description.html.erb [moved from app/views/notes/_description.html.erb with 100% similarity]
app/views/api/notes/_entry.html.erb [moved from app/views/notes/_entry.html.erb with 100% similarity]
app/views/api/notes/_note.gpx.builder [moved from app/views/notes/_note.gpx.builder with 100% similarity]
app/views/api/notes/_note.json.jsonify [moved from app/views/notes/_note.json.jsonify with 100% similarity]
app/views/api/notes/_note.rss.builder [moved from app/views/notes/_note.rss.builder with 73% similarity]
app/views/api/notes/_note.xml.builder [moved from app/views/notes/_note.xml.builder with 100% similarity]
app/views/api/notes/feed.rss.builder [moved from app/views/notes/feed.rss.builder with 56% similarity]
app/views/api/notes/index.gpx.builder [moved from app/views/notes/index.gpx.builder with 100% similarity]
app/views/api/notes/index.json.jsonify [moved from app/views/notes/index.json.jsonify with 100% similarity]
app/views/api/notes/index.rss.builder [moved from app/views/notes/index.rss.builder with 54% similarity]
app/views/api/notes/index.xml.builder [moved from app/views/notes/index.xml.builder with 100% similarity]
app/views/api/notes/show.gpx.builder [moved from app/views/notes/show.gpx.builder with 100% similarity]
app/views/api/notes/show.json.jsonify [moved from app/views/notes/show.json.jsonify with 100% similarity]
app/views/api/notes/show.rss.builder [moved from app/views/notes/show.rss.builder with 56% similarity]
app/views/api/notes/show.xml.builder [moved from app/views/notes/show.xml.builder with 100% similarity]
config/locales/en.yml
config/routes.rb
test/controllers/api/notes_controller_test.rb [new file with mode: 0644]
test/controllers/notes_controller_test.rb