Sha256: a5e2cc77260e2e3ff9b99285df094f5cb0c24a53014b455f5ec0b536c7a1a59c

Contents?: true

Size: 1.5 KB

Versions: 3

Compression:

Stored size: 1.5 KB

Contents

Rails.application.routes.draw do
	# Development environment only
	if Rails.env.development?
		# Settings
		get "/cytoplasm" => "Cytoplasm/settings#index", :as => :cytoplasm_settings
		get "/cytoplasm/general" => "Cytoplasm/settings#general", :as => :cytoplasm_general_settings
		get "/cytoplasm/layout" => "Cytoplasm/settings#layout", :as => :cytoplasm_layout_settings
		get "/cytoplasm/colors" => "Cytoplasm/settings#colors", :as => :cytoplasm_colors_settings
		get "/cytoplasm/advanced" => "Cytoplasm/settings#advanced", :as => :cytoplasm_advanced_config
		post "/cytoplasm/update" => "Cytoplasm/settings#update", :as => :cytoplasm_update
		
		# Fonts
		get "/cytoplasm/fonts" => "Cytoplasm/fonts#index", :controller => Cytoplasm::FontsController, :action => :index, :as => :cytoplasm_fonts
		get "/cytoplasm/fonts/:directory/:family" => "Cytoplasm/fonts#show", :controller => Cytoplasm::FontsController, :action => :show, :as => :cytoplasm_show_font
		post "/cytoplasm/fonts/import" => "Cytoplasm/fonts#import"
		post "/cytoplasm/fonts/remove" => "Cytoplasm/fonts#remove"
		post "/cytoplasm/fonts/enable" => "Cytoplasm/fonts#enable"
		post "/cytoplasm/fonts/disable" => "Cytoplasm/fonts#disable"
	end
	
	# All environments
	# Settings
	get "/cytoplasm/precompile" => "Cytoplasm/settings#precompile", :as => :cytoplasm_precompile
	post "/cytoplasm/precompile" => "Cytoplasm/settings#precompile"
	post "/cytoplasm/settings/fetch" => "Cytoplasm/settings#fetch"
	
	# Fonts
	post "/cytoplasm/fonts/fetch_all" => "Cytoplasm/fonts#fetch_all"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cytoplasm-0.3.5 config/routes.rb
cytoplasm-0.3.4 config/routes.rb
cytoplasm-0.3.3 config/routes.rb