build interface to work with object auth. Go to panel/new_blog/back_end/posts/ ,click New Auth link
This commit is contained in:
1 parent
e20739e32b
commit
436f039c1b
6 files changed
+61
-35
No files matched your search
+4
-1
@@ -13,8 +13,11 @@ PrototypeR4::Application.routes.draw do
|
||||
resources :assets
|
||||
resources :app_auths
|
||||
resources :object_auths do
|
||||
collection do
|
||||
match 'new/:type/:obj_id',:action => 'new',:via => "get",:as => :init
|
||||
end
|
||||
member do
|
||||
match ':id/create_role',:action => 'create_role',:iia => "post",:as => :create_role
|
||||
match ':id/create_role',:action => 'create_role',:via => "post",:as => :create_role
|
||||
match 'remove/:type/:target_id' ,:action=> 'remove_role',:via => "delete",:as =>:remove
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user