################ # # Place your application routes here. # # # # Add your routes and controllers by order of priority. # # A dynamic Websocket Client route can be used to automatically send the # # updated Websocket client whenever Plezi is updated. # Plezi.route 'ws/client', :client # # I18n re-write, i.e.: `/en/home` will be rewriten as `/home`, while setting params['locale'] to "en" # Plezi.route "/:locale" , /^(#{I18n.available_locales.join "|"})$/ if defined? I18n # # Response format re-write, i.e.: `/xml/home` will use .xml templates automatically # # with :locale a request might look like `/en/json/...` # Plezi.route "/:format" , /^(html|json|xml)$/ # # The root Controller Plezi.route '/', RootController