Class: Rack::OAuth2::Server::Admin
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Rack::OAuth2::Server::Admin
- Defined in:
- lib/rack/oauth2/server/admin.rb
Defined Under Namespace
Classes: Mount
Class Method Summary collapse
-
.mount(path = "/oauth/admin") ⇒ Object
Returns Rack handle that mounts Admin on the specified path, and forwards all other requests back to the application.
Class Method Details
.mount(path = "/oauth/admin") ⇒ Object
Returns Rack handle that mounts Admin on the specified path, and forwards all other requests back to the application.
/oauth/admin
52 53 54 55 56 |
# File 'lib/rack/oauth2/server/admin.rb', line 52 def mount(path = "/oauth/admin") mount = Class.new(Mount) mount.mount Admin, "/oauth/admin" mount end |