Add WafPolicies
This commit is contained in:
@@ -38,6 +38,7 @@ Rails.application.routes.draw do
|
||||
|
||||
# Analytics dashboard
|
||||
get "analytics", to: "analytics#index"
|
||||
get "analytics/networks", to: "analytics#networks"
|
||||
|
||||
# Root path - analytics dashboard
|
||||
root "analytics#index"
|
||||
@@ -66,4 +67,16 @@ Rails.application.routes.draw do
|
||||
post :enable
|
||||
end
|
||||
end
|
||||
|
||||
# WAF Policy management
|
||||
resources :waf_policies, only: [:index, :new, :create, :show, :edit, :update, :destroy] do
|
||||
member do
|
||||
post :activate
|
||||
post :deactivate
|
||||
end
|
||||
collection do
|
||||
get :new_country
|
||||
post :create_country
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user