/user_upgrades: add json/xml api support.

This commit is contained in:
evazion
2020-12-28 19:50:17 -06:00
parent 7fc5845e72
commit e29e2da8be

View File

@@ -1,5 +1,5 @@
class UserUpgradesController < ApplicationController
respond_to :js, :html
respond_to :js, :html, :json, :xml
def create
@user_upgrade = authorize UserUpgrade.create(recipient: recipient, purchaser: CurrentUser.user, status: "pending", upgrade_type: params[:upgrade_type])