Permalink
Browse files

refactor routes for easier engine mounting

  • Loading branch information...
1 parent ab7d70b commit f2eea6fed9a429cf5dc0cf989f9c1ad452ffd763 @phlipper phlipper committed Sep 21, 2012
@@ -1,4 +1,4 @@
-<%= form_tag "/auth/identity/callback", class: "form-horizontal" do %>
+<%= form_tag auth_callback_url(provider: "identity"), class: "form-horizontal" do %>
<fieldset>
<legend>Login</legend>
View
@@ -1,6 +1,6 @@
Thincloud::Authentication::Engine.routes.draw do
- match "auth/:provider/callback" => "registrations#create", as: "auth_callback"
- get "auth/failure", to: "sessions#new", as: "auth_failure"
+ match ":provider/callback" => "registrations#create", as: "auth_callback"
+ get "failure", to: "sessions#new", as: "auth_failure"
get "login", to: "sessions#new", as: "login"
delete "logout", to: "sessions#destroy", as: "logout"
@@ -4,8 +4,8 @@
namespace :thincloud do
namespace :authentication do
- match "auth/:provider/callback" => "registrations#create"
- get "auth/failure", to: "sessions#new"
+ match ":provider/callback" => "registrations#create"
+ get "failure", to: "sessions#new"
get "login", to: "sessions#new", as: "login"
delete "logout", to: "sessions#destroy", as: "logout"

0 comments on commit f2eea6f

Please sign in to comment.