Sha256: 84e911cc64654e5f059be87650d849f06fbdb06f1e75dbca3fd45a36ccc8d9c3
Contents?: true
Size: 405 Bytes
Versions: 42
Compression:
Stored size: 405 Bytes
Contents
ActionController::Routing::Routes.draw do |map| # Authorization flow. map.with_options :controller=>"oauth" do |oauth| oauth.connect "oauth/authorize", :action=>"authorize" oauth.connect "oauth/grant", :action=>"grant" oauth.connect "oauth/deny", :action=>"deny" end # Resources we want to protect map.with_options :controller=>"api" do |api| api.connection ":action" end end
Version data entries
42 entries across 42 versions & 2 rubygems