Class: GithubReleases::ReleasesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- GithubReleases::ReleasesController
- Defined in:
- app/controllers/github_releases/releases_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
2 3 4 |
# File 'app/controllers/github_releases/releases_controller.rb', line 2 def index render json: GithubReleases.releases, status: 200 end |
#show ⇒ Object
6 7 8 |
# File 'app/controllers/github_releases/releases_controller.rb', line 6 def show render json: GithubReleases.release(params[:id]), status: 200 end |