diff options
author | Imre Farkas <ifarkas@gitlab.com> | 2018-05-31 17:01:04 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-05-31 17:01:04 +0300 |
commit | 20dfe25c151cc883ce0d38b67125b5ca41e6d422 (patch) | |
tree | 9a29f05a241713f3488e6bc2e5df03c07300ef45 /config/routes/group.rb | |
parent | 2fdd8982f8204340e6413a57f46e6c41d8ecb429 (diff) |
Export assigned issues in iCalendar feed
Diffstat (limited to 'config/routes/group.rb')
-rw-r--r-- | config/routes/group.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb index fff0914c3cd..b09eb3c1b5b 100644 --- a/config/routes/group.rb +++ b/config/routes/group.rb @@ -5,9 +5,10 @@ end constraints(::Constraints::GroupUrlConstrainer.new) do scope(path: 'groups/*id', controller: :groups, - constraints: { id: Gitlab::PathRegex.full_namespace_route_regex, format: /(html|json|atom)/ }) do + constraints: { id: Gitlab::PathRegex.full_namespace_route_regex, format: /(html|json|atom|ics)/ }) do scope(path: '-') do get :edit, as: :edit_group + get :issues, as: :issues_group_calendar, action: :issues_calendar, constraints: lambda { |req| req.format == :ics } get :issues, as: :issues_group get :merge_requests, as: :merge_requests_group get :projects, as: :projects_group |