summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/locales/en.yml8
-rw-r--r--config/routes.rb17
2 files changed, 19 insertions, 6 deletions
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 0653957..9b7f013 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -21,3 +21,11 @@
en:
hello: "Hello world"
+
+ simple_captcha:
+ placeholder: "Enter the image value"
+ label: "Enter the code in the box:"
+
+ message:
+ default: "Secret Code did not match with the Image"
+ user: "The secret Image and code were different"
diff --git a/config/routes.rb b/config/routes.rb
index fe92ba5..8c91ee1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,23 +1,28 @@
Leaguer::Application.routes.draw do
+
resources :brackets
- resources :sessions
+ resources :sessions, only: [:new, :create, :destroy]
resources :users
resources :games
- resources :tournaments
-
resources :pms
resources :alerts
- resources :teams
+ resource :server, only: [:show, :edit, :update]
- resources :matches
+ #match 'simple_captcha/:id', :to => 'simple_captcha#show', :as => :simple_captcha
+
+ resources :teams
+ resources :tournaments do
+ resources :matches, only: [:index, :show, :update]
+ end
- resources :servers
+ root to: 'static#homepage'
+ get '/testsvg', to: 'static#test'
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".