Closed robert-damoc closed 1 year ago
Remove the API path from controllers. Keep only server-side rendering
E.g. Transform from
respond_to do |format| format.html { redirect_to players_url, notice: 'Player was successfully destroyed.' } format.json { head :no_content } end
to
redirect_to players_url, notice: 'Player was successfully destroyed.'
Also remove the .json files from views
.json
Remove the API path from controllers. Keep only server-side rendering
E.g. Transform from
to
Also remove the
.json
files from views