Lots of updates
This commit is contained in:
@@ -11,6 +11,13 @@ Rails.application.routes.draw do
|
||||
# Admin user management (admin only)
|
||||
resources :users, only: [:index, :show, :edit, :update]
|
||||
|
||||
# Settings management (admin only)
|
||||
resources :settings, only: [:index] do
|
||||
collection do
|
||||
patch :update
|
||||
end
|
||||
end
|
||||
|
||||
# DSN management (admin only)
|
||||
resources :dsns do
|
||||
member do
|
||||
@@ -44,7 +51,7 @@ Rails.application.routes.draw do
|
||||
root "analytics#index"
|
||||
|
||||
# Event management
|
||||
resources :events, only: [:index]
|
||||
resources :events, only: [:index, :show]
|
||||
|
||||
# Network range management
|
||||
resources :network_ranges, only: [:index, :show, :new, :create, :edit, :update, :destroy] do
|
||||
@@ -79,4 +86,11 @@ Rails.application.routes.draw do
|
||||
post :create_country
|
||||
end
|
||||
end
|
||||
|
||||
# GeoLite2 data import management (admin only)
|
||||
resources :data_imports, only: [:index, :new, :create, :show, :destroy] do
|
||||
member do
|
||||
get :progress
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user