Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ef2bf86f3e
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 42 lines (31 sloc) 1.463 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
HamburgOnRuby::Application.routes.draw do

  devise_for :users, ActiveAdmin::Devise.config

  ActiveAdmin.routes(self)

  resources :wishes do
    resources :votes
  end

  resources :users
  resources :locations do
    get 'company', on: :collection
  end

  resources :events do
    get 'rss', on: :collection, format: :xml
    post 'add_user', on: :member
    get 'publish', on: :member
    resources :materials
    resources :topics
    resources :participants
  end

  match '/auth/:provider/callback', to: 'sessions#create'
  match '/auth/failure', to: 'sessions#failure'
  match '/admin/logout', to: 'sessions#destroy', as: :destroy_admin_user_session # make the logout of rails-admin functional
  match '/auth/destroy_user_session', to: 'sessions#destroy_user_session', as: :destroy_user_session
  match '/auth/destroy_session', to: 'sessions#destroy', as: :destroy_session
  match '/auth/login/:provider', to: 'sessions#auth', as: :auth, defaults: { :provider => 'twitter' }
  match '/auth/offline_login/:nickname', to: 'sessions#offline_login' if Rails.env.development?

  match '/home/info', to: 'home#info', as: :info
  match '/home/imprint', to: 'home#imprint', as: :imprint

  match '/sitemap.xml', to: 'misc#sitemap', format: :xml

  match '/api', to: 'api#index'

  root to: "home#index"
end
Something went wrong with that request. Please try again.