add auth_request route and controller
This commit is contained in:
parent
8cd27e26e2
commit
bf5416095e
|
@ -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"
|
||||||
|
|
10
vendor/built_in_modules/ask_new/app/controllers/panel/ask/back_end/ask_requests_controller.rb
vendored
Normal file
10
vendor/built_in_modules/ask_new/app/controllers/panel/ask/back_end/ask_requests_controller.rb
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
class Panel::Ask::BackEnd::AskRequestsController < OrbitBackendController
|
||||||
|
|
||||||
|
include AdminHelper
|
||||||
|
include OrbitControllerLib::DivisionForDisable
|
||||||
|
|
||||||
|
def auth_request
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
|
@ -15,6 +15,8 @@ Rails.application.routes.draw do
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue