-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure separate routes file for Dashboard Engine to fix doubly-loa…
…ded routes.rb (#8)
- Loading branch information
1 parent
8efff4e
commit 7910984
Showing
4 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SpectatorSport::Dashboard::Engine.routes.draw do | ||
root to: "dashboards#index" | ||
resources :session_windows, only: [ :show, :destroy ] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
SpectatorSport::Engine.routes.draw do | ||
resources :events, only: [ :index, :create ] | ||
end | ||
|
||
SpectatorSport::Dashboard::Engine.routes.draw do | ||
get "/", to: "dashboards#index" | ||
# resources :dashboards, only: [ :show, :destroy ] | ||
resources :session_windows, only: [ :show, :destroy ] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters