Use Same Endpoint for HTML and JSON in OperationsController
We usually use the same endpoint for presenting both HTML and JSON.
def environments
respond_to do |format|
format.html { ... }
format.json { ... }
end
end
It's automatically switched by the request type, e.g. /environments
=> HTML, /environments.js
=> JSON
We don't need to introduce two endpoints for this case in the OperationsController
.
See discussion: !18357 (comment 229166712)
Edited by Jason Goodman