Files
danbooru/app/controllers/artist_commentary_versions_controller.rb
evazion 2aac42b112 Add show actions for note, artist, artist commentary versions.
Add these endpoints:

* /note_versions/1234
* /artist_versions/1234
* /artist_commentary_versions/1234

This is so the /ip_addresses listing can link to these endpoints.
2019-11-11 12:56:39 -06:00

16 lines
495 B
Ruby

class ArtistCommentaryVersionsController < ApplicationController
respond_to :html, :xml, :json
def index
@commentary_versions = ArtistCommentaryVersion.paginated_search(params)
respond_with(@commentary_versions)
end
def show
@commentary_version = ArtistCommentaryVersion.find(params[:id])
respond_with(@commentary_version) do |format|
format.html { redirect_to artist_commentary_versions_path(search: { post_id: @commentary_version.post_id }) }
end
end
end