diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-02-27 16:08:48 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-03-01 14:47:52 +0300 |
commit | c5b3b71e89996ba4e6fb977e3cbb3eebfbbfed4e (patch) | |
tree | f00ba49189df8a72f647c33c4670534f70c7cc64 /config/routes | |
parent | 31353188f84bd3e57318b4b1aa2da93a9d9605d1 (diff) |
CE-port for 7714-view-recent-boards
Adds additional count param to Boards::Visits::LatestService
Diffstat (limited to 'config/routes')
-rw-r--r-- | config/routes/group.rb | 2 | ||||
-rw-r--r-- | config/routes/project.rb | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb index a0aeebe4b91..b3015529c6e 100644 --- a/config/routes/group.rb +++ b/config/routes/group.rb @@ -67,7 +67,7 @@ constraints(::Constraints::GroupUrlConstrainer.new) do end end - resources :boards, only: [:index, :show] + resources :boards, only: [:index, :show], constraints: { id: /\d+/ } resources :runners, only: [:index, :edit, :update, :destroy, :show] do member do diff --git a/config/routes/project.rb b/config/routes/project.rb index b4ebc7df4fe..d60a5cc9ae8 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -394,8 +394,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do get 'noteable/:target_type/:target_id/notes' => 'notes#index', as: 'noteable_notes' - # On CE only index and show are needed - resources :boards, only: [:index, :show] + resources :boards, only: [:index, :show], constraints: { id: /\d+/ } resources :todos, only: [:create] |