Migrate to Postgresql for better network handling. Add more user functionality.
This commit is contained in:
@@ -2,7 +2,7 @@ Rails.application.routes.draw do
|
||||
# Registration only allowed when no users exist
|
||||
resource :registration, only: [:new, :create]
|
||||
resource :session
|
||||
resources :passwords, param: :token
|
||||
resource :password
|
||||
|
||||
# OIDC authentication routes
|
||||
get "/auth/failure", to: "omniauth_callbacks#failure"
|
||||
@@ -39,6 +39,20 @@ Rails.application.routes.draw do
|
||||
end
|
||||
end
|
||||
|
||||
# Network range management
|
||||
resources :network_ranges, only: [:index, :show, :new, :create, :edit, :update, :destroy] do
|
||||
member do
|
||||
post :enrich
|
||||
end
|
||||
collection do
|
||||
get :lookup
|
||||
get :search
|
||||
end
|
||||
end
|
||||
|
||||
# Support CIDR patterns with dots in network range routes
|
||||
get '/network_ranges/:id', to: 'network_ranges#show', constraints: { id: /[\d\.:\/_]+/ }
|
||||
|
||||
# Rule management
|
||||
resources :rules, only: [:index, :new, :create, :show, :edit, :update] do
|
||||
member do
|
||||
|
||||
Reference in New Issue
Block a user