add auth_request route and controller

This commit is contained in:
thomaschen 2013-09-10 10:48:28 +08:00 committed by chris
parent 8cd27e26e2
commit bf5416095e
3 changed files with 14 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class Panel::Ask::BackEnd::AskRepliesController < OrbitBackendController
require 'net/http' require 'net/http'
require 'uri' require 'uri'
require 'json' require 'json'
uri = URI.parse("http://localhost:3000") uri = URI.parse("http://localhost/ask/back_end/ask_requests/auth_request:3000")
@body = { @body = {
"a" => "123", "a" => "123",
"b" => "456" "b" => "456"

View File

@ -0,0 +1,10 @@
class Panel::Ask::BackEnd::AskRequestsController < OrbitBackendController
include AdminHelper
include OrbitControllerLib::DivisionForDisable
def auth_request
end
end

View File

@ -11,10 +11,12 @@ Rails.application.routes.draw do
end end
resources :ask_replies resources :ask_replies
end end
resources :ask_categories resources :ask_categories
resources :ask_acknowledgements resources :ask_acknowledgements
resources :ask_admins resources :ask_admins
match "ask_requests/auth_request" => "ask_requests#auth_request", :as => 'auth_request'
end end
namespace :front_end do namespace :front_end do