robert-damoc / game-stats

0 stars 0 forks source link

Remove API path from controllers #49

Closed robert-damoc closed 1 year ago

robert-damoc commented 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