diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/initializers/js_routes.rb | 7 | ||||
| -rw-r--r-- | config/routes.rb | 2 |
2 files changed, 9 insertions, 0 deletions
| diff --git a/config/initializers/js_routes.rb b/config/initializers/js_routes.rb new file mode 100644 index 0000000..7bc0c65 --- /dev/null +++ b/config/initializers/js_routes.rb | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | JsRoutes.setup do |c| | ||
| 2 | # Setup your JS module system: | ||
| 3 | # ESM, CJS, AMD, UMD or nil | ||
| 4 | # c.module_type = "ESM" | ||
| 5 | c.module_type = nil | ||
| 6 | c.namespace = 'Routes' | ||
| 7 | end | ||
| diff --git a/config/routes.rb b/config/routes.rb index 2bae007..dcfe673 100644 --- a/config/routes.rb +++ b/config/routes.rb | |||
| @@ -15,6 +15,8 @@ Rails.application.routes.draw do | |||
| 15 | resources :links, except: [:show] | 15 | resources :links, except: [:show] |
| 16 | 16 | ||
| 17 | resources :games, except: [:show] | 17 | resources :games, except: [:show] |
| 18 | |||
| 19 | resources :comments, only: [:index, :destroy] | ||
| 18 | end | 20 | end |
| 19 | 21 | ||
| 20 | devise_for :users, controllers: { | 22 | devise_for :users, controllers: { |
