Adding a route in a plugin

(eriko) #1

I could have sworn that I found a post describing how to add a route inside of a plugin. I need to add something like the following to cas_sso to handle CAS logout requests.

"not right as it is poorly munged from the canvas_lms code
post ‘login/cas’ => ‘CASAuthenticator#cas_logout’, as: :cas_logout

While I could just document that it should be added to the config/routes.rb file that seems inelegant. Any thoughts?

(eriko) #2

Ok I found an example here: