Render :created view on remix (#84)

This view is required as it shows the `edit_key` for unauth users
This commit is contained in:
Justin Edmund 2023-03-17 04:40:49 -07:00
parent ebeaf64f74
commit 30754322d4

View file

@ -65,7 +65,7 @@ module Api
new_party.local_id = party_params[:local_id] if !party_params.nil? new_party.local_id = party_params[:local_id] if !party_params.nil?
if new_party.save if new_party.save
render json: PartyBlueprint.render(new_party, view: :full, root: :party, render json: PartyBlueprint.render(new_party, view: :created, root: :party,
meta: { remix: true }) meta: { remix: true })
else else
render_validation_error_response(new_party) render_validation_error_response(new_party)