Class: MnoEnterprise::Router
- Inherits:
-
Object
- Object
- MnoEnterprise::Router
- Defined in:
- lib/mno_enterprise/core.rb
Overview
MnoEnterprise Router Centralizes all URLs available on the Maestrano Enterprise side
Instance Attribute Summary collapse
-
#after_sign_out_url ⇒ Object
Customise after_sign_out url.
-
#dashboard_path ⇒ Object
Returns the value of attribute dashboard_path.
-
#terms_url ⇒ Object
Returns the value of attribute terms_url.
Instance Method Summary collapse
- #admin_path ⇒ Object
- #authorize_oauth_url(id, opts = {}) ⇒ Object
- #disconnect_oauth_url(id, opts = {}) ⇒ Object
-
#impac_root_url ⇒ Object
deprecated
Deprecated.
Impac is now configured through Settings
- #launch_url(id, opts = {}) ⇒ Object
- #sync_oauth_url(id, opts = {}) ⇒ Object
Instance Attribute Details
#after_sign_out_url ⇒ Object
Customise after_sign_out url
46 47 48 |
# File 'lib/mno_enterprise/core.rb', line 46 def after_sign_out_url @after_sign_out_url end |
#dashboard_path ⇒ Object
Returns the value of attribute dashboard_path.
48 49 50 |
# File 'lib/mno_enterprise/core.rb', line 48 def dashboard_path @dashboard_path end |
#terms_url ⇒ Object
Returns the value of attribute terms_url.
43 44 45 |
# File 'lib/mno_enterprise/core.rb', line 43 def terms_url @terms_url end |
Instance Method Details
#admin_path ⇒ Object
58 59 60 |
# File 'lib/mno_enterprise/core.rb', line 58 def admin_path @admin_path || '/admin/' end |
#authorize_oauth_url(id, opts = {}) ⇒ Object
66 67 68 |
# File 'lib/mno_enterprise/core.rb', line 66 def (id,opts = {}) host_url("/oauth/#{id}/authorize",opts) end |
#disconnect_oauth_url(id, opts = {}) ⇒ Object
70 71 72 |
# File 'lib/mno_enterprise/core.rb', line 70 def disconnect_oauth_url(id,opts = {}) host_url("/oauth/#{id}/disconnect",opts) end |
#impac_root_url ⇒ Object
Deprecated.
Impac is now configured through Settings
79 80 81 82 |
# File 'lib/mno_enterprise/core.rb', line 79 def impac_root_url warn '[DEPRECATION] `impac_root_url` is deprecated. Impac is now configured in the frontend through `Settings`.' URI.join(MnoEnterprise.impac_api_host,MnoEnterprise.impac_api_root_path) end |
#launch_url(id, opts = {}) ⇒ Object
62 63 64 |
# File 'lib/mno_enterprise/core.rb', line 62 def launch_url(id,opts = {}) host_url("/launch/#{id}",opts) end |
#sync_oauth_url(id, opts = {}) ⇒ Object
74 75 76 |
# File 'lib/mno_enterprise/core.rb', line 74 def sync_oauth_url(id,opts = {}) host_url("/oauth/#{id}/sync",opts) end |