File: routes.rb

package info (click to toggle)
redmine-plugin-local-avatars 1.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 228 kB
  • sloc: ruby: 156; makefile: 2
file content (7 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
Rails.application.routes.draw do 
    match 'my/avatar', :to => 'my#avatar', :via => [:get, :post]
    match 'my/save_avatar/:id', :to => 'my#save_avatar', :via => [:get, :post]
    match 'account/get_avatar/:id', :to => 'account#get_avatar', :constraints => {:id=>/\d+/}, :via => [:get, :post]
    match 'users/save_avatar/:id', :to => 'users#save_avatar', :constraints => {:id=>/\d+/}, :via => [:get, :post]
    match 'users/get_avatar/:id', :to => 'users#get_avatar', :constraints => {:id=>/\d+/}, :via => [:get, :post]
end