Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d8664c23ef
Fetching contributors…

Cannot retrieve contributors at this time

file 33 lines (25 sloc) 1.013 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
Roswell::Application.routes.draw do

  get 'signup', :to => 'users#new'
  get 'login', :to => 'sessions#new'
  get 'logout', :to => 'sessions#destroy'

  get 'search', :to => 'search#index'

  resources :favorites, :only => [ :index, :create ]
  delete '/favorites', :to => 'favorites#destroy'

  resources :sessions
  resources :users, only: [ :edit, :update ]

  namespace :accounts do
    resources :generic_accounts, :path => 'generic'
    get 'generic/group/:group', :to => 'generic_accounts#grouped', :as => 'grouped_generic'
    resources :web_accounts, :path => 'web'
    get 'web/group/:group', :to => 'web_accounts#grouped', :as => 'grouped_web'
  end

  resources :licenses
  get 'licenses/group/:group', :to => 'licenses#grouped', :as => 'grouped_licenses'
  resources :notes
  get 'notes/group/:group', :to => 'notes#grouped', :as => 'grouped_notes'

  namespace :admin do
    resources :users, :except => [ :show ]
    resources :groups, :except => [ :show ]
  end

  root :to => 'sessions#new'
end
Something went wrong with that request. Please try again.