This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
tuxbliki/config/router.rb

51 lines
1.1 KiB
Ruby
Raw Normal View History

2008-06-27 00:13:15 -04:00
Merb.logger.info("Compiling routes...")
Merb::Router.prepare do |r|
2008-07-03 12:14:41 -04:00
r.match('/node/node/:id').to(
:controller => 'node',
:action => 'show'
)
r.match('/node/:id').to(
2008-06-27 00:13:15 -04:00
:controller => 'node',
:action => 'show'
)
2008-07-03 02:12:27 -04:00
r.match('/horde/chora/:phpaction.php/:program').to(
:controller => 'node',
:action => 'chora'
)
2008-06-27 00:13:15 -04:00
r.resources :pages
r.resources :comments
r.resources :tags
r.match('/tags/auto_complete').to(
:controller => 'tags',
:action => 'auto_complete'
)
r.resources :authors
r.resources :sessions
r.resources :permissions
r.resources :news
r.resources :invitations
r.resources :albums
r.resources :photos
r.match('/photos/thumbnail/:id').to(
:controller => 'photos',
:action => 'thumbnail'
)
r.match('/photos/screen/:id').to(
:controller => 'photos',
:action => 'screen'
)
2008-07-03 12:37:33 -04:00
r.match('/photos/set_album_thumbnail/:id').to(
:controller => 'photos',
:action => 'set_album_thumbnail'
)
2008-06-27 00:13:15 -04:00
r.resources :photo_tags
r.match('/').to(
:controller => 'news',
:action => 'index'
)
2008-08-28 23:31:01 -04:00
r.match('/feeds/:action.xml').to(
:controller => 'feeds',
:format => 'xml'
)
2008-06-27 00:13:15 -04:00
end