You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
1.3 KiB

13 years ago
Entrydns::Application.routes.draw do
mount RailsAdmin::Engine => '/rails_admin', as: 'rails_admin'
12 years ago
devise_for :admins
devise_for :users, controllers: {
registrations: 'users/registrations',
omniauth_callbacks: 'users/omniauth_callbacks'
}
12 years ago
scope module: 'users' do
resources :authentications do
as_routes
end
12 years ago
resources :domains do
as_routes
end
13 years ago
12 years ago
resources :hosts do
as_routes
member do
put 'new_token'
end
end
13 years ago
match '/records/modify/:authentication_token', to: 'records#modify',
as: :modify_record, via: [:get, :post, :put]
12 years ago
resources :records do
as_routes
end
13 years ago
12 years ago
resources :soas do
as_routes
end
13 years ago
12 years ago
resources :ns do
as_routes
end
13 years ago
12 years ago
resources :mxes do
as_routes
end
12 years ago
resources :as do
as_routes
member do
put 'new_token'
end
end
12 years ago
resources :cnames do
as_routes
end
13 years ago
12 years ago
resources :txts do
as_routes
end
resources :aaaas do
as_routes
end
resources :srvs do
as_routes
end
resources :permissions do
as_routes
end
end
13 years ago
12 years ago
scope module: 'public' do
resources :pages, only: :show, path: ''
post 'contact', to: 'pages#contact'
12 years ago
root to: 'pages#show', id: 'home'
12 years ago
end
13 years ago
end