Delete more unused code

Just some routes and controllers that I think were at various points
serving as API endpoints, but no longer do I think!
This commit is contained in:
Emi Matchu 2023-11-11 14:57:56 -08:00
parent aae5c767bb
commit 5905f4aed1
7 changed files with 0 additions and 52 deletions

View file

@ -1,8 +0,0 @@
class PetAttributesController < ApplicationController
def index
render :json => {
:color => Color.funny.alphabetical,
:species => Species.alphabetical
}
end
end

View file

@ -1,10 +0,0 @@
class PetTypesController < ApplicationController
def show
pet_type = PetType.find_by_color_id_and_species_id(params[:color_id], params[:species_id])
if pet_type
render :json => pet_type.as_json(:for => params[:for])
else
render :json => nil
end
end
end

View file

@ -1,11 +0,0 @@
class SwfAssetsController < ApplicationController
def show
@swf_asset = SwfAsset.find params[:id]
render :json => @swf_asset
end
def links
@swf_assets = SwfAsset.from_wardrobe_link_params(params[:asset_ids])
end
end

View file

@ -1,5 +0,0 @@
class ZonesController < ApplicationController
def index
render json: Zone.includes(:translations).all
end
end

View file

@ -1,2 +0,0 @@
module ItemZoneSetsHelper
end

View file

@ -1,8 +0,0 @@
- title t('.title')
%ul#swf-assets
- @swf_assets.each do |swf_asset|
%li
= link_to swf_asset.url do
= image_tag(swf_asset.image_url([150, 150]))
%span= swf_asset.url

View file

@ -7,8 +7,6 @@ OpenneoImpressItems::Application.routes.draw do
get '/wardrobe' => redirect('/outfits/new') get '/wardrobe' => redirect('/outfits/new')
get '/start/:color_name/:species_name' => 'outfits#start' get '/start/:color_name/:species_name' => 'outfits#start'
get '/species/:species_id/color/:color_id/pet_type.json' => 'pet_types#show'
resources :contributions, :only => [:index] resources :contributions, :only => [:index]
resources :items, :only => [:index, :show] do resources :items, :only => [:index, :show] do
resources :appearances, controller: 'item_appearances', only: [:index] resources :appearances, controller: 'item_appearances', only: [:index]
@ -18,12 +16,6 @@ OpenneoImpressItems::Application.routes.draw do
end end
resources :outfits, :only => [:show, :create, :update, :destroy] resources :outfits, :only => [:show, :create, :update, :destroy]
resources :pet_attributes, :only => [:index] resources :pet_attributes, :only => [:index]
resources :swf_assets, :only => [:show] do
collection do
get :links
end
end
resources :zones, only: [:index]
scope 'import' do scope 'import' do
resources :neopets_page_import_tasks, only: [:new, :create], resources :neopets_page_import_tasks, only: [:new, :create],