<commit_before>Grantox::Engine.routes.draw do
  root 'pages#index'
  
  resources :nodes
  resources :sections
  resources :pages
  resources :links
  
  resources :connectors do
    collection do
      post "add"
    end
    member do
      put "move"
    end
  end
  resources :rss_content_blocks
  resources :text_content_blocks
  resources :text_with_title_content_blocks
  resources :text_with_sidebar_content_blocks
  
  resources :content_blocks
  
  match "*path", to: "pages#show", via: :all
end

Rails.application.routes.draw do
  get "visual_edit_mode", to: "grantox/application#visual_edit_mode"
  
  root 'grantox/pages#index'
  
  match "*path", to: "grantox/pages#show", via: :all
end<commit_msg>Add routes automatically for all content blocks<commit_after>Grantox::Engine.routes.draw do
  root 'pages#index'
  
  resources :nodes
  resources :sections
  resources :pages
  resources :links
  
  resources :connectors do
    collection do
      post "add"
    end
    member do
      put "move"
    end
  end
  
  Dir[Grantox::Engine.root.join("app/views/grantox/connectables/*")].each do |dir|
    resources File.basename(dir).to_sym
  end
  resources :content_blocks
  
  match "*path", to: "pages#show", via: :all
end

Rails.application.routes.draw do
  get "visual_edit_mode", to: "grantox/application#visual_edit_mode"
  root 'grantox/pages#index'
  match "*path", to: "grantox/pages#show", via: :all
end
{'fraction_non_alphanumeric': 0.0997191011235955, 'fraction_numerical': 0.0, 'mean_word_length': 3.814189189189189, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2527172', 'n_tokens_mistral': 481, 'n_tokens_neox': 470, 'n_words': 119}