Skip to content

Commit ff6b64c

Browse files
committed
clean up unused endpoint code
1 parent 1dffd36 commit ff6b64c

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

app/controllers/basil_controller.rb

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -207,31 +207,6 @@ def content
207207
@can_request_another = @can_request_another && @in_progress_commissions.count < BasilService::MAX_JOB_QUEUE_SIZE
208208
end
209209

210-
def character
211-
@character = current_user.characters.find(params[:id])
212-
@guidance = BasilFieldGuidance.find_or_initialize_by(entity: @character, user: current_user).try(:guidance)
213-
@guidance ||= {}
214-
215-
category_ids = AttributeCategory.where(
216-
user_id: current_user.id,
217-
entity_type: 'character',
218-
label: ['Looks', 'Appearance']
219-
).pluck(:id)
220-
@appearance_fields = AttributeField.where(attribute_category_id: category_ids)
221-
@attributes = Attribute.where(
222-
attribute_field_id: @appearance_fields.pluck(:id),
223-
entity_id: @character.id,
224-
entity_type: 'Character'
225-
)
226-
227-
@commissions = BasilCommission.where(entity_type: 'Character', entity_id: @character.id)
228-
.order('id DESC')
229-
.limit(20)
230-
.includes(:basil_feedbacks)
231-
@in_progress_commissions = BasilCommission.where(entity_type: 'Character', entity_id: @character.id, completed_at: nil)
232-
@can_request_another = @in_progress_commissions.count < BasilService::MAX_JOB_QUEUE_SIZE
233-
end
234-
235210
def about
236211
end
237212

config/routes.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
get '/:content_type', to: 'basil#index', as: :basil_content_index
2525
get '/:content_type/:id', to: 'basil#content', as: :basil_content
2626
post '/:content_type/:id', to: 'basil#commission', as: :basil_commission
27-
28-
# URLs to migrate over
29-
# get '/character/:id', to: 'basil#character', as: :basil_character
30-
# post '/character/:id', to: 'basil#commission'
3127
end
3228
end
3329

0 commit comments

Comments
 (0)