Skip to content

Commit cffdabe

Browse files
committed
Make URL for calendars more RESTful: /calendar/:id -> /calendars/:id
1 parent 42af13b commit cffdabe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

config/routes.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@
3535
get "/redirects/202407", to: redirect('https://www.facebook.com/groups/coderdojo.jp.champions/posts/7788378511253707/')
3636
get "/redirects/interface", to: redirect('/')
3737
get "/youtube", to: redirect('https://www.youtube.com/CoderDojoJapan')
38-
get "/calendar", to: redirect('/calendar/yohei')
39-
get "/calendar/yohei" => "docs#show", id: '_calendar-yohei'
40-
get "/calendar/kirie" => "docs#show", id: '_calendar-kirie'
38+
get "/calendar", to: redirect('/calendars')
39+
get "/calendars", to: redirect('/calendars/yohei')
40+
get "/calendar/yohei", to: redirect('/calendars/yohei')
41+
get "/calendar/kirie", to: redirect('/calendars/kirie')
42+
get "/calendars/yohei" => "docs#show", id: '_calendar-yohei'
43+
get "/calendars/kirie" => "docs#show", id: '_calendar-kirie'
4144
get "/thanks" => "docs#show", id: '_thanks'
4245

4346
get "/brand" => "docs#show", id: 'brand-guidelines'

0 commit comments

Comments
 (0)