<commit_before>Spree::Core::Engine.routes.draw do
  # Add your extension routes here
  
  
  
  
  get "/boards/search" => "boards#search", :as => :board_search
  resources :boards do 
    resources :board_products
    resources :color_matches
  end
  resources :designer_registrations
  
  get "/designers/thanks" => "designer_registrations#thanks", :as => :designer_registration_thanks
  
  get "/designers/signup" => "designer_registrations#new", :as => :designer_signup
  #post "/designers/signup" => "designers#signup", :as => :create_designer_registration
  
  get "/dashboard" => "home#dashboard", :as => :designer_dashboard
  post "/orders/add_to_cart" => "orders#add_to_cart", :as => :orders_add_to_cart
  get "/my_profile" => "home#profile", :as => :my_profile
  patch "/designers" => "designers#update", :as => :update_designer
  get "/my_boards" => "boards#my_boards", :as => :my_boards

  get "/designers" => "designers#index", :as => :designers
  get "/designer/:id" => "designers#show", :as => :designer

  get '/boards/build/:id' => "boards#build", :as => :build_board
  get '/boards/:id/design' => "boards#design", :as => :design_board
  post "/boards/product_search" => "boards#product_search", :as => :board_product_search
  
  
  
  
  
  
  resources :board_products
  
  
  namespace :admin do
    resources :boards
    resources :board_products
    resources :designer_registrations
  end

end
<commit_msg>fixing a route order issue<commit_after>Spree::Core::Engine.routes.draw do
  # Add your extension routes here
  
  
  match "/boards/product_search" => "boards#product_search", :as => :board_product_search, :via =>[:get, :post]
  
  get "/boards/search" => "boards#search", :as => :board_search
  resources :boards do 
    resources :board_products
    resources :color_matches
  end
  resources :designer_registrations
  
  get "/designers/thanks" => "designer_registrations#thanks", :as => :designer_registration_thanks
  
  get "/designers/signup" => "designer_registrations#new", :as => :designer_signup
  #post "/designers/signup" => "designers#signup", :as => :create_designer_registration
  
  get "/dashboard" => "home#dashboard", :as => :designer_dashboard
  post "/orders/add_to_cart" => "orders#add_to_cart", :as => :orders_add_to_cart
  get "/my_profile" => "home#profile", :as => :my_profile
  patch "/designers" => "designers#update", :as => :update_designer
  get "/my_boards" => "boards#my_boards", :as => :my_boards

  get "/designers" => "designers#index", :as => :designers
  get "/designer/:id" => "designers#show", :as => :designer

  get '/boards/build/:id' => "boards#build", :as => :build_board
  get '/boards/:id/design' => "boards#design", :as => :design_board
  
  
  #get "/boards/product_search" => "boards#product_search", :as => :board_product_search
  
  
  
  
  
  resources :board_products
  
  
  namespace :admin do
    resources :boards
    resources :board_products
    resources :designer_registrations
  end

end

{'fraction_non_alphanumeric': 0.15286624203821655, 'fraction_numerical': 0.0, 'mean_word_length': 4.396021699819168, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 62, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2798480', 'n_tokens_mistral': 1012, 'n_tokens_neox': 1009, 'n_words': 212}