diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-29 01:20:17 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-29 01:20:17 -0800 |
commit | 1f0e16569f1924ed967bff9f4f78bbee874251db (patch) | |
tree | 06c9c64dc37d6646cb467b8b854e0b557662d934 /config/routes.rb | |
parent | c9f18d4587f16eb16b8b902d69576520c08b7f5a (diff) | |
download | gitlab-ce-1f0e16569f1924ed967bff9f4f78bbee874251db.tar.gz |
Load contribution calendar via AJAX
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb index 5d61de29b9a..e122777314a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -157,10 +157,9 @@ Gitlab::Application.routes.draw do end end - # route for commits used by the cal-heatmap - get 'u/:username/activities' => 'users#activities', as: :user_activities, - constraints: { username: /(?:[^.]|\.(?!atom$))+/, format: /atom/ }, - via: :get + get 'u/:username/calendar' => 'users#calendar', as: :user_calendar, + constraints: { username: /(?:[^.]|\.(?!atom$))+/, format: /atom/ } + get '/u/:username' => 'users#show', as: :user, constraints: { username: /(?:[^.]|\.(?!atom$))+/, format: /atom/ } |