Class: GithubReleases::ReleasesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/github_releases/releases_controller.rb

Instance Method Summary collapse

Instance Method Details

#current_versionObject



10
11
12
# File 'app/controllers/github_releases/releases_controller.rb', line 10

def current_version
  render json: { version: GithubReleases.current_version }, status: 200
end

#indexObject



2
3
4
# File 'app/controllers/github_releases/releases_controller.rb', line 2

def index
  render json: GithubReleases.all, status: 200
end

#showObject



6
7
8
# File 'app/controllers/github_releases/releases_controller.rb', line 6

def show
  render json: GithubReleases.find(params[:id]), status: 200
end