more changes to routes.rb
This commit is contained in:
parent
9699b41159
commit
466b1716a5
1 changed files with 19 additions and 14 deletions
|
@ -1,17 +1,10 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
Metamaps::Application.routes.draw do
|
Metamaps::Application.routes.draw do
|
||||||
use_doorkeeper
|
use_doorkeeper
|
||||||
|
|
||||||
root to: 'main#home', via: :get
|
root to: 'main#home', via: :get
|
||||||
|
|
||||||
get 'request', to: 'main#requestinvite', as: :request
|
get 'request', to: 'main#requestinvite', as: :request
|
||||||
|
|
||||||
namespace :search do
|
|
||||||
get :topics
|
|
||||||
get :maps
|
|
||||||
get :mappers
|
|
||||||
get :synapses
|
|
||||||
end
|
|
||||||
|
|
||||||
namespace :explore do
|
namespace :explore do
|
||||||
get 'active'
|
get 'active'
|
||||||
get 'featured'
|
get 'featured'
|
||||||
|
@ -42,17 +35,29 @@ Metamaps::Application.routes.draw do
|
||||||
resources :metacodes, except: [:destroy]
|
resources :metacodes, except: [:destroy]
|
||||||
get 'metacodes/:name', to: 'metacodes#show'
|
get 'metacodes/:name', to: 'metacodes#show'
|
||||||
|
|
||||||
|
namespace :search do
|
||||||
|
get :topics
|
||||||
|
get :maps
|
||||||
|
get :mappers
|
||||||
|
get :synapses
|
||||||
|
end
|
||||||
|
|
||||||
resources :synapses, except: [:index, :new, :edit]
|
resources :synapses, except: [:index, :new, :edit]
|
||||||
|
|
||||||
resources :topics, except: [:index, :new, :edit] do
|
resources :topics, except: [:index, :new, :edit] do
|
||||||
get :autocomplete_topic, on: :collection
|
get :autocomplete_topic
|
||||||
|
member do
|
||||||
|
get :network
|
||||||
|
get :relative_numbers
|
||||||
|
get :relatives
|
||||||
|
end
|
||||||
end
|
end
|
||||||
get 'topics/:id/network', to: 'topics#network', as: :network
|
|
||||||
get 'topics/:id/relative_numbers', to: 'topics#relative_numbers', as: :relative_numbers
|
|
||||||
get 'topics/:id/relatives', to: 'topics#relatives', as: :relatives
|
|
||||||
|
|
||||||
resources :users, except: [:index, :destroy]
|
resources :users, except: [:index, :destroy] do
|
||||||
get 'users/:id/details', to: 'users#details', as: :details
|
member do
|
||||||
|
get :details
|
||||||
|
end
|
||||||
|
end
|
||||||
post 'user/updatemetacodes', to: 'users#updatemetacodes', as: :updatemetacodes
|
post 'user/updatemetacodes', to: 'users#updatemetacodes', as: :updatemetacodes
|
||||||
|
|
||||||
namespace :api, path: '/api', default: { format: :json } do
|
namespace :api, path: '/api', default: { format: :json } do
|
||||||
|
|
Loading…
Reference in a new issue