annotate config/routes.rb @ 1628:9c5f8e24dadc live tip

Quieten this cron script
author Chris Cannam
date Tue, 25 Aug 2020 11:38:49 +0100
parents c86dacc2ef0a
children
rev   line source
Chris@1115 1 # Redmine - project management software
Chris@1494 2 # Copyright (C) 2006-2014 Jean-Philippe Lang
Chris@1115 3 #
Chris@1115 4 # This program is free software; you can redistribute it and/or
Chris@1115 5 # modify it under the terms of the GNU General Public License
Chris@1115 6 # as published by the Free Software Foundation; either version 2
Chris@1115 7 # of the License, or (at your option) any later version.
Chris@1115 8 #
Chris@1115 9 # This program is distributed in the hope that it will be useful,
Chris@1115 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@1115 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@1115 12 # GNU General Public License for more details.
Chris@1115 13 #
Chris@1115 14 # You should have received a copy of the GNU General Public License
Chris@1115 15 # along with this program; if not, write to the Free Software
Chris@1115 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Chris@909 17
Chris@1115 18 RedmineApp::Application.routes.draw do
Chris@1115 19 root :to => 'welcome#index', :as => 'home'
Chris@0 20
Chris@1464 21 match 'login', :to => 'account#login', :as => 'signin', :via => [:get, :post]
Chris@1464 22 match 'logout', :to => 'account#logout', :as => 'signout', :via => [:get, :post]
Chris@1115 23 match 'account/register', :to => 'account#register', :via => [:get, :post], :as => 'register'
Chris@1115 24 match 'account/lost_password', :to => 'account#lost_password', :via => [:get, :post], :as => 'lost_password'
Chris@1115 25 match 'account/activate', :to => 'account#activate', :via => :get
Chris@1464 26 get 'account/activation_email', :to => 'account#activation_email', :as => 'activation_email'
Chris@909 27
Chris@1464 28 match '/news/preview', :controller => 'previews', :action => 'news', :as => 'preview_news', :via => [:get, :post, :put]
Chris@1464 29 match '/issues/preview/new/:project_id', :to => 'previews#issue', :as => 'preview_new_issue', :via => [:get, :post, :put]
Chris@1464 30 match '/issues/preview/edit/:id', :to => 'previews#issue', :as => 'preview_edit_issue', :via => [:get, :post, :put]
Chris@1464 31 match '/issues/preview', :to => 'previews#issue', :as => 'preview_issue', :via => [:get, :post, :put]
Chris@909 32
Chris@1115 33 match 'projects/:id/wiki', :to => 'wikis#edit', :via => :post
Chris@1115 34 match 'projects/:id/wiki/destroy', :to => 'wikis#destroy', :via => [:get, :post]
Chris@0 35
Chris@1464 36 match 'boards/:board_id/topics/new', :to => 'messages#new', :via => [:get, :post], :as => 'new_board_message'
Chris@1115 37 get 'boards/:board_id/topics/:id', :to => 'messages#show', :as => 'board_message'
Chris@1115 38 match 'boards/:board_id/topics/quote/:id', :to => 'messages#quote', :via => [:get, :post]
Chris@1115 39 get 'boards/:board_id/topics/:id/edit', :to => 'messages#edit'
Chris@1115 40
Chris@1464 41 post 'boards/:board_id/topics/preview', :to => 'messages#preview', :as => 'preview_board_message'
Chris@1115 42 post 'boards/:board_id/topics/:id/replies', :to => 'messages#reply'
Chris@1115 43 post 'boards/:board_id/topics/:id/edit', :to => 'messages#edit'
Chris@1115 44 post 'boards/:board_id/topics/:id/destroy', :to => 'messages#destroy'
Chris@1115 45
Chris@1115 46 # Misc issue routes. TODO: move into resources
Chris@1115 47 match '/issues/auto_complete', :to => 'auto_completes#issues', :via => :get, :as => 'auto_complete_issues'
Chris@1464 48 match '/issues/context_menu', :to => 'context_menus#issues', :as => 'issues_context_menu', :via => [:get, :post]
Chris@1464 49 match '/issues/changes', :to => 'journals#index', :as => 'issue_changes', :via => :get
Chris@1115 50 match '/issues/:id/quoted', :to => 'journals#new', :id => /\d+/, :via => :post, :as => 'quoted_issue'
Chris@1115 51
Chris@1115 52 match '/journals/diff/:id', :to => 'journals#diff', :id => /\d+/, :via => :get
Chris@1115 53 match '/journals/edit/:id', :to => 'journals#edit', :id => /\d+/, :via => [:get, :post]
Chris@1115 54
Chris@1464 55 get '/projects/:project_id/issues/gantt', :to => 'gantts#show', :as => 'project_gantt'
Chris@1464 56 get '/issues/gantt', :to => 'gantts#show'
Chris@1115 57
Chris@1464 58 get '/projects/:project_id/issues/calendar', :to => 'calendars#show', :as => 'project_calendar'
Chris@1464 59 get '/issues/calendar', :to => 'calendars#show'
Chris@1115 60
Chris@1464 61 get 'projects/:id/issues/report', :to => 'reports#issue_report', :as => 'project_issues_report'
Chris@1464 62 get 'projects/:id/issues/report/:detail', :to => 'reports#issue_report_details', :as => 'project_issues_report_details'
Chris@1115 63
Chris@1115 64 match 'my/account', :controller => 'my', :action => 'account', :via => [:get, :post]
Chris@1115 65 match 'my/account/destroy', :controller => 'my', :action => 'destroy', :via => [:get, :post]
Chris@1115 66 match 'my/page', :controller => 'my', :action => 'page', :via => :get
Chris@1115 67 match 'my', :controller => 'my', :action => 'index', :via => :get # Redirects to my/page
Chris@1115 68 match 'my/reset_rss_key', :controller => 'my', :action => 'reset_rss_key', :via => :post
Chris@1115 69 match 'my/reset_api_key', :controller => 'my', :action => 'reset_api_key', :via => :post
Chris@1115 70 match 'my/password', :controller => 'my', :action => 'password', :via => [:get, :post]
Chris@1115 71 match 'my/page_layout', :controller => 'my', :action => 'page_layout', :via => :get
Chris@1115 72 match 'my/add_block', :controller => 'my', :action => 'add_block', :via => :post
Chris@1115 73 match 'my/remove_block', :controller => 'my', :action => 'remove_block', :via => :post
Chris@1115 74 match 'my/order_blocks', :controller => 'my', :action => 'order_blocks', :via => :post
Chris@1115 75
Chris@1115 76 resources :users
Chris@1115 77 match 'users/:id/memberships/:membership_id', :to => 'users#edit_membership', :via => :put, :as => 'user_membership'
Chris@1115 78 match 'users/:id/memberships/:membership_id', :to => 'users#destroy_membership', :via => :delete
Chris@1115 79 match 'users/:id/memberships', :to => 'users#edit_membership', :via => :post, :as => 'user_memberships'
Chris@1115 80
Chris@1464 81 post 'watchers/watch', :to => 'watchers#watch', :as => 'watch'
Chris@1464 82 delete 'watchers/watch', :to => 'watchers#unwatch'
Chris@1464 83 get 'watchers/new', :to => 'watchers#new'
Chris@1464 84 post 'watchers', :to => 'watchers#create'
Chris@1464 85 post 'watchers/append', :to => 'watchers#append'
Chris@1464 86 delete 'watchers', :to => 'watchers#destroy'
Chris@1464 87 get 'watchers/autocomplete_for_user', :to => 'watchers#autocomplete_for_user'
Chris@1464 88 # Specific routes for issue watchers API
Chris@1464 89 post 'issues/:object_id/watchers', :to => 'watchers#create', :object_type => 'issue'
Chris@1464 90 delete 'issues/:object_id/watchers/:user_id' => 'watchers#destroy', :object_type => 'issue'
Chris@1115 91
Chris@1115 92 match 'projects/:id/settings/:tab', :to => "projects#settings"
luis@1245 93 match 'projects/:id/overview', :to => "projects#overview"
Chris@1115 94
Chris@1115 95 resources :projects do
Chris@1115 96 member do
Chris@1464 97 get 'settings(/:tab)', :action => 'settings', :as => 'settings'
Chris@1115 98 post 'modules'
Chris@1115 99 post 'archive'
Chris@1115 100 post 'unarchive'
Chris@1115 101 post 'close'
Chris@1115 102 post 'reopen'
Chris@1115 103 match 'copy', :via => [:get, :post]
Chris@1115 104 end
Chris@1115 105
Chris@1464 106 shallow do
Chris@1464 107 resources :memberships, :controller => 'members', :only => [:index, :show, :new, :create, :update, :destroy] do
Chris@1464 108 collection do
Chris@1464 109 get 'autocomplete'
Chris@1464 110 end
Chris@1115 111 end
Chris@1115 112 end
Chris@1115 113
Chris@1484 114 shallow do
Chris@1484 115 resources :members, :controller => 'members', :only => [:index, :show, :new, :create, :update, :destroy] do
Chris@1484 116 collection do
Chris@1484 117 get 'autocomplete'
Chris@1484 118 end
Chris@1115 119 end
Chris@1115 120 end
Chris@1115 121
Chris@1115 122 resource :enumerations, :controller => 'project_enumerations', :only => [:update, :destroy]
Chris@1115 123
Chris@1464 124 get 'issues/:copy_from/copy', :to => 'issues#new', :as => 'copy_issue'
Chris@1115 125 resources :issues, :only => [:index, :new, :create] do
Chris@1115 126 resources :time_entries, :controller => 'timelog' do
Chris@1115 127 collection do
Chris@1115 128 get 'report'
Chris@1115 129 end
Chris@1115 130 end
Chris@1115 131 end
Chris@1115 132 # issue form update
Chris@1464 133 match 'issues/update_form', :controller => 'issues', :action => 'update_form', :via => [:put, :post], :as => 'issue_form'
Chris@1115 134
Chris@1115 135 resources :files, :only => [:index, :new, :create]
Chris@1115 136
Chris@1115 137 resources :versions, :except => [:index, :show, :edit, :update, :destroy] do
Chris@1115 138 collection do
Chris@1115 139 put 'close_completed'
Chris@1115 140 end
Chris@1115 141 end
Chris@1464 142 get 'versions.:format', :to => 'versions#index'
Chris@1464 143 get 'roadmap', :to => 'versions#index', :format => false
Chris@1464 144 get 'versions', :to => 'versions#index'
Chris@1115 145
Chris@1115 146 resources :news, :except => [:show, :edit, :update, :destroy]
Chris@1115 147 resources :time_entries, :controller => 'timelog' do
Chris@1115 148 get 'report', :on => :collection
Chris@1115 149 end
Chris@1115 150 resources :queries, :only => [:new, :create]
Chris@1464 151 shallow do
Chris@1464 152 resources :issue_categories
Chris@1464 153 end
Chris@1115 154 resources :documents, :except => [:show, :edit, :update, :destroy]
Chris@1115 155 resources :boards
Chris@1464 156 shallow do
Chris@1464 157 resources :repositories, :except => [:index, :show] do
Chris@1464 158 member do
Chris@1464 159 match 'committers', :via => [:get, :post]
Chris@1464 160 end
Chris@1115 161 end
Chris@1115 162 end
Chris@1464 163
Chris@1115 164 match 'wiki/index', :controller => 'wiki', :action => 'index', :via => :get
Chris@1464 165 resources :wiki, :except => [:index, :new, :create], :as => 'wiki_page' do
Chris@1115 166 member do
Chris@1115 167 get 'rename'
Chris@1115 168 post 'rename'
Chris@1115 169 get 'history'
Chris@1115 170 get 'diff'
Chris@1115 171 match 'preview', :via => [:post, :put]
Chris@1115 172 post 'protect'
Chris@1115 173 post 'add_attachment'
Chris@1115 174 end
Chris@1115 175 collection do
Chris@1115 176 get 'export'
Chris@1115 177 get 'date_index'
Chris@1115 178 end
Chris@1115 179 end
Chris@1115 180 match 'wiki', :controller => 'wiki', :action => 'show', :via => :get
Chris@1464 181 get 'wiki/:id/:version', :to => 'wiki#show', :constraints => {:version => /\d+/}
Chris@1115 182 delete 'wiki/:id/:version', :to => 'wiki#destroy_version'
Chris@1115 183 get 'wiki/:id/:version/annotate', :to => 'wiki#annotate'
Chris@1115 184 get 'wiki/:id/:version/diff', :to => 'wiki#diff'
Chris@0 185 end
chris@37 186
Chris@1115 187 resources :issues do
Chris@1115 188 collection do
Chris@1115 189 match 'bulk_edit', :via => [:get, :post]
Chris@1115 190 post 'bulk_update'
Chris@1115 191 end
Chris@1115 192 resources :time_entries, :controller => 'timelog' do
Chris@1115 193 collection do
Chris@1115 194 get 'report'
Chris@1115 195 end
Chris@1115 196 end
Chris@1464 197 shallow do
Chris@1464 198 resources :relations, :controller => 'issue_relations', :only => [:index, :show, :create, :destroy]
Chris@1464 199 end
Chris@1115 200 end
Chris@1115 201 match '/issues', :controller => 'issues', :action => 'destroy', :via => :delete
Chris@909 202
luis@1129 203 # changed this route to ensure compatibility with Rails 3 --lf.20130109
luis@1129 204 match 'explore' => 'projects#explore'
chris@1007 205
Chris@1115 206 resources :queries, :except => [:show]
Chris@909 207
Chris@1115 208 resources :news, :only => [:index, :show, :edit, :update, :destroy]
Chris@1115 209 match '/news/:id/comments', :to => 'comments#create', :via => :post
Chris@1115 210 match '/news/:id/comments/:comment_id', :to => 'comments#destroy', :via => :delete
Chris@1115 211
Chris@1115 212 resources :versions, :only => [:show, :edit, :update, :destroy] do
Chris@1115 213 post 'status_by', :on => :member
Chris@1115 214 end
Chris@1115 215
Chris@1115 216 resources :documents, :only => [:show, :edit, :update, :destroy] do
Chris@1115 217 post 'add_attachment', :on => :member
Chris@1115 218 end
Chris@1115 219
Chris@1464 220 match '/time_entries/context_menu', :to => 'context_menus#time_entries', :as => :time_entries_context_menu, :via => [:get, :post]
Chris@1115 221
Chris@1115 222 resources :time_entries, :controller => 'timelog', :except => :destroy do
Chris@1115 223 collection do
Chris@1115 224 get 'report'
Chris@1115 225 get 'bulk_edit'
Chris@1115 226 post 'bulk_update'
Chris@0 227 end
Chris@1115 228 end
Chris@1115 229 match '/time_entries/:id', :to => 'timelog#destroy', :via => :delete, :id => /\d+/
Chris@1115 230 # TODO: delete /time_entries for bulk deletion
Chris@1115 231 match '/time_entries/destroy', :to => 'timelog#destroy', :via => :delete
Chris@1115 232
Chris@1115 233 get 'projects/:id/activity', :to => 'activities#index'
Chris@1115 234 get 'projects/:id/activity.:format', :to => 'activities#index'
Chris@1115 235 get 'activity', :to => 'activities#index'
Chris@1115 236
Chris@1115 237 # repositories routes
Chris@1115 238 get 'projects/:id/repository/:repository_id/statistics', :to => 'repositories#stats'
Chris@1115 239 get 'projects/:id/repository/:repository_id/graph', :to => 'repositories#graph'
Chris@1115 240
Chris@1115 241 get 'projects/:id/repository/:repository_id/changes(/*path(.:ext))',
Chris@1115 242 :to => 'repositories#changes'
Chris@1115 243
Chris@1115 244 get 'projects/:id/repository/:repository_id/revisions/:rev', :to => 'repositories#revision'
Chris@1115 245 get 'projects/:id/repository/:repository_id/revision', :to => 'repositories#revision'
Chris@1115 246 post 'projects/:id/repository/:repository_id/revisions/:rev/issues', :to => 'repositories#add_related_issue'
Chris@1115 247 delete 'projects/:id/repository/:repository_id/revisions/:rev/issues/:issue_id', :to => 'repositories#remove_related_issue'
Chris@1115 248 get 'projects/:id/repository/:repository_id/revisions', :to => 'repositories#revisions'
Chris@1115 249 get 'projects/:id/repository/:repository_id/revisions/:rev/:action(/*path(.:ext))',
Chris@1115 250 :controller => 'repositories',
Chris@1115 251 :format => false,
Chris@1115 252 :constraints => {
Chris@1115 253 :action => /(browse|show|entry|raw|annotate|diff)/,
Chris@1115 254 :rev => /[a-z0-9\.\-_]+/
Chris@1115 255 }
Chris@1115 256
Chris@1115 257 get 'projects/:id/repository/statistics', :to => 'repositories#stats'
Chris@1115 258 get 'projects/:id/repository/graph', :to => 'repositories#graph'
Chris@1115 259
Chris@1115 260 get 'projects/:id/repository/changes(/*path(.:ext))',
Chris@1115 261 :to => 'repositories#changes'
Chris@1115 262
Chris@1115 263 get 'projects/:id/repository/revisions', :to => 'repositories#revisions'
Chris@1115 264 get 'projects/:id/repository/revisions/:rev', :to => 'repositories#revision'
Chris@1115 265 get 'projects/:id/repository/revision', :to => 'repositories#revision'
Chris@1115 266 post 'projects/:id/repository/revisions/:rev/issues', :to => 'repositories#add_related_issue'
Chris@1115 267 delete 'projects/:id/repository/revisions/:rev/issues/:issue_id', :to => 'repositories#remove_related_issue'
Chris@1115 268 get 'projects/:id/repository/revisions/:rev/:action(/*path(.:ext))',
Chris@1115 269 :controller => 'repositories',
Chris@1115 270 :format => false,
Chris@1115 271 :constraints => {
Chris@1115 272 :action => /(browse|show|entry|raw|annotate|diff)/,
Chris@1115 273 :rev => /[a-z0-9\.\-_]+/
Chris@1115 274 }
Chris@1115 275 get 'projects/:id/repository/:repository_id/:action(/*path(.:ext))',
Chris@1115 276 :controller => 'repositories',
Chris@1115 277 :action => /(browse|show|entry|raw|changes|annotate|diff)/
Chris@1115 278 get 'projects/:id/repository/:action(/*path(.:ext))',
Chris@1115 279 :controller => 'repositories',
Chris@1115 280 :action => /(browse|show|entry|raw|changes|annotate|diff)/
Chris@1115 281
Chris@1115 282 get 'projects/:id/repository/:repository_id', :to => 'repositories#show', :path => nil
Chris@1115 283 get 'projects/:id/repository', :to => 'repositories#show', :path => nil
Chris@1115 284
Chris@1115 285 # additional routes for having the file name at the end of url
Chris@1464 286 get 'attachments/:id/:filename', :to => 'attachments#show', :id => /\d+/, :filename => /.*/, :as => 'named_attachment'
Chris@1464 287 get 'attachments/download/:id/:filename', :to => 'attachments#download', :id => /\d+/, :filename => /.*/, :as => 'download_named_attachment'
Chris@1464 288 get 'attachments/download/:id', :to => 'attachments#download', :id => /\d+/
Chris@1484 289 get 'attachments/toggle_active/:id', :to => 'attachments#toggle_active', :id => /\d+/
Chris@1464 290 get 'attachments/thumbnail/:id(/:size)', :to => 'attachments#thumbnail', :id => /\d+/, :size => /\d+/, :as => 'thumbnail'
Chris@1115 291 resources :attachments, :only => [:show, :destroy]
Chris@1115 292
Chris@1115 293 resources :groups do
Chris@1115 294 member do
Chris@1115 295 get 'autocomplete_for_user'
Chris@0 296 end
Chris@0 297 end
Chris@909 298
Chris@1115 299 match 'groups/:id/users', :controller => 'groups', :action => 'add_users', :id => /\d+/, :via => :post, :as => 'group_users'
Chris@1115 300 match 'groups/:id/users/:user_id', :controller => 'groups', :action => 'remove_user', :id => /\d+/, :via => :delete, :as => 'group_user'
Chris@1115 301 match 'groups/destroy_membership/:id', :controller => 'groups', :action => 'destroy_membership', :id => /\d+/, :via => :post
Chris@1115 302 match 'groups/edit_membership/:id', :controller => 'groups', :action => 'edit_membership', :id => /\d+/, :via => :post
Chris@1115 303
Chris@1115 304 resources :trackers, :except => :show do
Chris@1115 305 collection do
Chris@1115 306 match 'fields', :via => [:get, :post]
Chris@0 307 end
Chris@1115 308 end
Chris@1115 309 resources :issue_statuses, :except => :show do
Chris@1115 310 collection do
Chris@1115 311 post 'update_issue_done_ratio'
Chris@1115 312 end
Chris@1115 313 end
Chris@1115 314 resources :custom_fields, :except => :show
Chris@1115 315 resources :roles do
Chris@1115 316 collection do
Chris@1115 317 match 'permissions', :via => [:get, :post]
Chris@1115 318 end
Chris@1115 319 end
Chris@1115 320 resources :enumerations, :except => :show
Chris@1115 321 match 'enumerations/:type', :to => 'enumerations#index', :via => :get
Chris@1115 322
Chris@1115 323 get 'projects/:id/search', :controller => 'search', :action => 'index'
Chris@1115 324 get 'search', :controller => 'search', :action => 'index'
Chris@1115 325
Chris@1115 326 match 'mail_handler', :controller => 'mail_handler', :action => 'index', :via => :post
Chris@1115 327
Chris@1115 328 match 'admin', :controller => 'admin', :action => 'index', :via => :get
Chris@1115 329 match 'admin/projects', :controller => 'admin', :action => 'projects', :via => :get
Chris@1115 330 match 'admin/plugins', :controller => 'admin', :action => 'plugins', :via => :get
Chris@1115 331 match 'admin/info', :controller => 'admin', :action => 'info', :via => :get
Chris@1115 332 match 'admin/test_email', :controller => 'admin', :action => 'test_email', :via => :get
Chris@1115 333 match 'admin/default_configuration', :controller => 'admin', :action => 'default_configuration', :via => :post
Chris@1115 334
Chris@1115 335 resources :auth_sources do
Chris@1115 336 member do
Chris@1464 337 get 'test_connection', :as => 'try_connection'
Chris@1464 338 end
Chris@1464 339 collection do
Chris@1464 340 get 'autocomplete_for_new_user'
Chris@0 341 end
Chris@0 342 end
Chris@909 343
Chris@1115 344 match 'workflows', :controller => 'workflows', :action => 'index', :via => :get
Chris@1115 345 match 'workflows/edit', :controller => 'workflows', :action => 'edit', :via => [:get, :post]
Chris@1115 346 match 'workflows/permissions', :controller => 'workflows', :action => 'permissions', :via => [:get, :post]
Chris@1115 347 match 'workflows/copy', :controller => 'workflows', :action => 'copy', :via => [:get, :post]
Chris@1115 348 match 'settings', :controller => 'settings', :action => 'index', :via => :get
Chris@1115 349 match 'settings/edit', :controller => 'settings', :action => 'edit', :via => [:get, :post]
Chris@1464 350 match 'settings/plugin/:id', :controller => 'settings', :action => 'plugin', :via => [:get, :post], :as => 'plugin_settings'
Chris@1115 351
Chris@1115 352 match 'sys/projects', :to => 'sys#projects', :via => :get
Chris@1115 353 match 'sys/projects/:id/repository', :to => 'sys#create_project_repository', :via => :post
Chris@1446 354 match 'sys/projects/:id/repository_cache.:format', :controller => 'sys', :action => 'clear_repository_cache', :conditions => { :method => :post }
Chris@1334 355 match 'sys/projects/:id/embedded.:format', :controller => 'sys', :action => 'set_embedded_active', :conditions => { :method => :post }
Chris@1115 356 match 'sys/fetch_changesets', :to => 'sys#fetch_changesets', :via => :get
Chris@1115 357
Chris@1115 358 match 'uploads', :to => 'attachments#upload', :via => :post
Chris@1115 359
Chris@1115 360 get 'robots.txt', :to => 'welcome#robots'
Chris@1115 361
Chris@1115 362 Dir.glob File.expand_path("plugins/*", Rails.root) do |plugin_dir|
Chris@1115 363 file = File.join(plugin_dir, "config/routes.rb")
Chris@1115 364 if File.exists?(file)
Chris@1115 365 begin
Chris@1115 366 instance_eval File.read(file)
Chris@1115 367 rescue Exception => e
Chris@1115 368 puts "An error occurred while loading the routes definition of #{File.basename(plugin_dir)} plugin (#{file}): #{e.message}."
Chris@1115 369 exit 1
Chris@1115 370 end
Chris@0 371 end
Chris@0 372 end
Chris@0 373 end