8c51108a0c
* enable shared private and public maps * change the list * yeehaw add collaborators * I believe this fixes the error connor brought up * when topic or synapse is no longer on a map, don't defer * needs to be before? * just do it in the controller * make recommendation they sign in and retry * better email * config for mailer previews * improve wording * shouldn't have included that * switch to green * don't execute if there's no map * wasn't including the right people in some circumstances * Finish breaking out JS files (#551) * metamaps.Realtime refactor * Metamaps.Util * Metamaps.Visualize * Metamaps.SynapseCard * Metamaps.TopicCard * Metamaps.Create.js * Remove erb extension from Metamaps.Map.js * Metmaps.Account and Metamaps.GlobalUI remove extension * Metamaps.JIT no more erb extension * move Backbone.init; standard-format on Metamaps.js.erb * factor out canvas support check function * some llittle template bugs * remove featured from signed in explore maps bar * don't let it overflow off the page
63 lines
2.7 KiB
Ruby
63 lines
2.7 KiB
Ruby
Metamaps::Application.routes.draw do
|
|
|
|
use_doorkeeper
|
|
root to: 'main#home', via: :get
|
|
|
|
get 'request', to: 'main#requestinvite', as: :request
|
|
|
|
get 'search/topics', to: 'main#searchtopics', as: :searchtopics
|
|
get 'search/maps', to: 'main#searchmaps', as: :searchmaps
|
|
get 'search/mappers', to: 'main#searchmappers', as: :searchmappers
|
|
get 'search/synapses', to: 'main#searchsynapses', as: :searchsynapses
|
|
|
|
namespace :api, path: '/api/v1', defaults: {format: :json} do
|
|
resources :maps, only: [:create, :show, :update, :destroy]
|
|
resources :synapses, only: [:create, :show, :update, :destroy]
|
|
resources :topics, only: [:create, :show, :update, :destroy]
|
|
resources :mappings, only: [:create, :show, :update, :destroy]
|
|
resources :tokens, only: [ :create, :destroy] do
|
|
get :my_tokens, on: :collection
|
|
end
|
|
end
|
|
|
|
resources :messages, only: [:show, :create, :update, :destroy]
|
|
resources :mappings, except: [:index, :new, :edit]
|
|
resources :metacode_sets, :except => [:show]
|
|
|
|
resources :metacodes, :except => [:destroy]
|
|
get 'metacodes/:name', to: 'metacodes#show'
|
|
|
|
resources :synapses, except: [:index, :new, :edit]
|
|
resources :topics, except: [:index, :new, :edit] do
|
|
get :autocomplete_topic, :on => :collection
|
|
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 :maps, except: [:index, :new, :edit]
|
|
get 'maps/:id/export', to: 'maps#export'
|
|
post 'maps/:id/events/:event', to: 'maps#events'
|
|
get 'maps/:id/contains', to: 'maps#contains', as: :contains
|
|
post 'maps/:id/upload_screenshot', to: 'maps#screenshot', as: :screenshot
|
|
post 'maps/:id/access', to: 'maps#access', as: :access, defaults: {format: :json}
|
|
|
|
get 'explore/active', to: 'maps#activemaps'
|
|
get 'explore/featured', to: 'maps#featuredmaps'
|
|
get 'explore/mine', to: 'maps#mymaps'
|
|
get 'explore/shared', to: 'maps#sharedmaps'
|
|
get 'explore/mapper/:id', to: 'maps#usermaps'
|
|
|
|
devise_for :users, controllers: { registrations: 'users/registrations', passwords: 'users/passwords', sessions: 'devise/sessions' }, :skip => :sessions
|
|
|
|
devise_scope :user do
|
|
get 'login' => 'devise/sessions#new', :as => :new_user_session
|
|
post 'login' => 'devise/sessions#create', :as => :user_session
|
|
get 'logout' => 'devise/sessions#destroy', :as => :destroy_user_session
|
|
get 'join' => 'devise/registrations#new', :as => :new_user_registration_path
|
|
end
|
|
|
|
get 'users/:id/details', to: 'users#details', as: :details
|
|
post 'user/updatemetacodes', to: 'users#updatemetacodes', as: :updatemetacodes
|
|
resources :users, except: [:index, :destroy]
|
|
end
|