2010-08-18 18:42:33 -04:00
|
|
|
Danbooru::Application.routes.draw do
|
2010-03-10 18:21:43 -05:00
|
|
|
namespace :admin do
|
2011-09-13 19:37:24 -04:00
|
|
|
resources :users, :only => [:edit, :update]
|
2011-12-20 11:46:07 -05:00
|
|
|
resource :alias_and_implication_import, :only => [:new, :create]
|
2011-07-16 19:20:02 -04:00
|
|
|
end
|
|
|
|
namespace :moderator do
|
|
|
|
resource :dashboard, :only => [:show]
|
|
|
|
resources :ip_addrs, :only => [:index] do
|
|
|
|
collection do
|
|
|
|
get :search
|
|
|
|
end
|
|
|
|
end
|
2011-07-29 19:42:25 -04:00
|
|
|
resources :invitations, :only => [:new, :create, :index]
|
2011-08-03 18:32:57 -04:00
|
|
|
resource :tag, :only => [:edit, :update]
|
2011-07-22 13:35:40 -04:00
|
|
|
namespace :post do
|
2011-10-26 18:00:48 -04:00
|
|
|
resource :queue, :only => [:show]
|
2011-07-22 13:35:40 -04:00
|
|
|
resource :approval, :only => [:create]
|
|
|
|
resource :disapproval, :only => [:create]
|
2013-04-08 13:44:43 -04:00
|
|
|
resources :posts, :only => [:delete, :undelete, :expunge, :confirm_delete] do
|
2011-07-22 13:35:40 -04:00
|
|
|
member do
|
2013-02-23 16:53:03 -05:00
|
|
|
get :confirm_delete
|
2013-04-08 13:44:43 -04:00
|
|
|
post :expunge
|
2011-07-22 13:35:40 -04:00
|
|
|
post :delete
|
|
|
|
post :undelete
|
2013-04-16 23:23:02 -04:00
|
|
|
get :confirm_ban
|
|
|
|
post :ban
|
|
|
|
post :unban
|
2011-07-22 13:35:40 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2011-07-22 17:34:43 -04:00
|
|
|
resources :invitations, :only => [:new, :create, :index, :show]
|
|
|
|
resources :ip_addrs, :only => [:index, :search] do
|
|
|
|
collection do
|
|
|
|
get :search
|
|
|
|
end
|
|
|
|
end
|
2010-03-10 18:21:43 -05:00
|
|
|
end
|
2011-10-28 19:21:44 -04:00
|
|
|
namespace :explore do
|
|
|
|
resources :posts, :only => [:popular, :hot] do
|
|
|
|
collection do
|
|
|
|
get :popular
|
|
|
|
get :hot
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
namespace :maintenance do
|
|
|
|
namespace :user do
|
|
|
|
resource :password_reset, :only => [:new, :create, :edit, :update]
|
|
|
|
resource :login_reminder, :only => [:new, :create]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-01-21 18:07:34 -05:00
|
|
|
resources :advertisements do
|
|
|
|
resources :hits, :controller => "advertisement_hits", :only => [:create]
|
|
|
|
end
|
2010-03-10 18:21:43 -05:00
|
|
|
resources :artists do
|
|
|
|
member do
|
|
|
|
put :revert
|
2013-02-23 10:56:27 -05:00
|
|
|
put :ban
|
2010-03-10 18:21:43 -05:00
|
|
|
end
|
2011-03-15 19:19:49 -04:00
|
|
|
collection do
|
2011-10-22 13:25:22 -04:00
|
|
|
get :show_or_new
|
2011-08-22 16:28:31 -04:00
|
|
|
get :banned
|
2011-03-15 19:19:49 -04:00
|
|
|
end
|
2010-03-10 18:21:43 -05:00
|
|
|
end
|
2011-01-21 18:07:34 -05:00
|
|
|
resources :artist_versions, :only => [:index]
|
2010-03-10 18:21:43 -05:00
|
|
|
resources :bans
|
2011-01-21 18:07:34 -05:00
|
|
|
resources :comments do
|
|
|
|
resources :votes, :controller => "comment_votes", :only => [:create, :destroy]
|
2011-03-15 19:19:49 -04:00
|
|
|
collection do
|
|
|
|
get :search
|
2013-01-14 11:23:43 -05:00
|
|
|
get :index_all
|
2011-03-15 19:19:49 -04:00
|
|
|
end
|
2011-01-21 18:07:34 -05:00
|
|
|
end
|
2012-04-18 18:16:21 -04:00
|
|
|
resources :delayed_jobs, :only => [:index]
|
2011-10-16 01:58:16 -04:00
|
|
|
resources :dmails do
|
|
|
|
collection do
|
|
|
|
get :search
|
2013-02-20 22:52:42 -05:00
|
|
|
post :mark_all_as_read
|
2011-10-16 01:58:16 -04:00
|
|
|
end
|
|
|
|
end
|
2011-06-12 16:41:23 -04:00
|
|
|
resource :dtext_preview, :only => [:create]
|
2010-03-10 18:21:43 -05:00
|
|
|
resources :favorites
|
2011-03-12 16:09:11 -05:00
|
|
|
resources :forum_posts do
|
2012-03-12 17:50:45 -04:00
|
|
|
member do
|
|
|
|
post :undelete
|
|
|
|
end
|
2011-03-12 16:09:11 -05:00
|
|
|
collection do
|
|
|
|
get :search
|
|
|
|
end
|
|
|
|
end
|
2012-03-12 17:50:45 -04:00
|
|
|
resources :forum_topics do
|
|
|
|
member do
|
|
|
|
post :undelete
|
|
|
|
end
|
2013-02-24 17:09:07 -05:00
|
|
|
collection do
|
|
|
|
post :mark_all_as_read
|
|
|
|
end
|
2012-03-12 17:50:45 -04:00
|
|
|
end
|
2011-10-28 19:21:44 -04:00
|
|
|
resources :ip_bans
|
2011-01-14 16:45:10 -05:00
|
|
|
resources :janitor_trials do
|
2011-10-21 17:56:02 -04:00
|
|
|
collection do
|
|
|
|
get :test
|
|
|
|
end
|
2011-01-14 16:45:10 -05:00
|
|
|
member do
|
|
|
|
put :promote
|
|
|
|
put :demote
|
|
|
|
end
|
|
|
|
end
|
2010-03-10 18:21:43 -05:00
|
|
|
resources :jobs
|
2011-10-28 19:21:44 -04:00
|
|
|
resource :landing
|
2011-07-22 17:34:43 -04:00
|
|
|
resources :mod_actions
|
2011-11-01 17:51:15 -04:00
|
|
|
resources :news_updates
|
2011-01-19 14:28:22 -05:00
|
|
|
resources :notes do
|
2011-05-16 09:27:06 -04:00
|
|
|
collection do
|
|
|
|
get :search
|
|
|
|
end
|
2011-01-19 14:28:22 -05:00
|
|
|
member do
|
|
|
|
put :revert
|
|
|
|
end
|
|
|
|
end
|
2011-01-21 18:07:34 -05:00
|
|
|
resources :note_versions, :only => [:index]
|
2010-03-10 18:21:43 -05:00
|
|
|
resources :pools do
|
|
|
|
member do
|
|
|
|
put :revert
|
2012-03-15 18:26:39 -04:00
|
|
|
post :undelete
|
2010-03-10 18:21:43 -05:00
|
|
|
end
|
2011-06-12 16:41:23 -04:00
|
|
|
resource :order, :only => [:edit, :update], :controller => "PoolOrders"
|
2010-03-10 18:21:43 -05:00
|
|
|
end
|
2013-03-17 21:54:28 -04:00
|
|
|
resource :pool_element, :only => [:create, :destroy] do
|
|
|
|
collection do
|
|
|
|
get :all_select
|
|
|
|
end
|
|
|
|
end
|
2011-01-21 18:07:34 -05:00
|
|
|
resources :pool_versions, :only => [:index]
|
2010-03-10 18:21:43 -05:00
|
|
|
resources :posts do
|
2011-01-21 18:07:34 -05:00
|
|
|
resources :votes, :controller => "post_votes", :only => [:create, :destroy]
|
2010-03-10 18:21:43 -05:00
|
|
|
member do
|
|
|
|
put :revert
|
2013-02-25 12:09:02 -05:00
|
|
|
get :show_seq
|
2010-03-10 18:21:43 -05:00
|
|
|
end
|
|
|
|
end
|
2013-04-17 00:28:54 -04:00
|
|
|
resources :post_appeals
|
|
|
|
resources :post_flags
|
2011-09-14 13:13:28 -04:00
|
|
|
resources :post_versions, :only => [:index, :search] do
|
|
|
|
collection do
|
|
|
|
get :search
|
|
|
|
end
|
|
|
|
end
|
2011-10-28 19:21:44 -04:00
|
|
|
resource :related_tag, :only => [:show]
|
2013-02-23 11:01:33 -05:00
|
|
|
resource :session do
|
|
|
|
collection do
|
|
|
|
get :sign_out
|
|
|
|
end
|
|
|
|
end
|
2011-10-28 19:21:44 -04:00
|
|
|
resource :source, :only => [:show]
|
2011-03-15 19:19:49 -04:00
|
|
|
resources :tags do
|
2013-04-08 14:13:04 -04:00
|
|
|
resource :correction, :only => [:new, :create, :show], :controller => "TagCorrections"
|
2011-03-15 19:19:49 -04:00
|
|
|
end
|
2010-10-08 18:42:26 -04:00
|
|
|
resources :tag_aliases do
|
2013-03-17 23:03:02 -04:00
|
|
|
resource :correction, :only => [:create, :new, :show], :controller => "TagAliasCorrections"
|
2011-07-20 17:40:45 -04:00
|
|
|
member do
|
2011-10-23 18:50:18 -04:00
|
|
|
post :approve
|
|
|
|
end
|
2012-01-07 21:32:36 -05:00
|
|
|
collection do
|
|
|
|
get :general_search
|
|
|
|
end
|
2011-10-23 18:50:18 -04:00
|
|
|
end
|
2013-03-10 16:31:39 -04:00
|
|
|
resource :tag_alias_request, :only => [:new, :create]
|
2011-10-23 18:50:18 -04:00
|
|
|
resources :tag_implications do
|
|
|
|
member do
|
|
|
|
post :approve
|
2011-07-20 17:40:45 -04:00
|
|
|
end
|
2010-10-08 18:42:26 -04:00
|
|
|
end
|
2013-03-10 16:31:39 -04:00
|
|
|
resource :tag_implication_request, :only => [:new, :create]
|
2011-07-29 18:04:50 -04:00
|
|
|
resources :tag_subscriptions do
|
|
|
|
member do
|
|
|
|
get :posts
|
|
|
|
end
|
|
|
|
end
|
2010-03-12 15:18:30 -05:00
|
|
|
resources :uploads
|
2011-12-01 18:27:11 -05:00
|
|
|
resources :users do
|
|
|
|
collection do
|
|
|
|
get :upgrade_information
|
2012-02-20 15:33:42 -05:00
|
|
|
get :search
|
2011-12-01 18:27:11 -05:00
|
|
|
end
|
2013-03-19 08:10:10 -04:00
|
|
|
|
2011-12-01 18:27:11 -05:00
|
|
|
member do
|
2011-12-20 16:18:35 -05:00
|
|
|
delete :cache
|
2011-12-01 18:27:11 -05:00
|
|
|
post :upgrade
|
|
|
|
end
|
|
|
|
end
|
2011-07-17 18:40:24 -04:00
|
|
|
resources :user_feedbacks
|
2013-03-26 01:03:42 -04:00
|
|
|
resources :user_name_change_requests do
|
|
|
|
member do
|
|
|
|
post :approve
|
|
|
|
post :reject
|
|
|
|
end
|
|
|
|
end
|
2010-03-10 18:21:43 -05:00
|
|
|
resources :wiki_pages do
|
|
|
|
member do
|
|
|
|
put :revert
|
|
|
|
end
|
2011-10-22 17:23:33 -04:00
|
|
|
collection do
|
2013-02-21 13:27:01 -05:00
|
|
|
get :search
|
2011-10-22 17:23:33 -04:00
|
|
|
get :show_or_new
|
|
|
|
end
|
2010-03-10 18:21:43 -05:00
|
|
|
end
|
2013-02-23 20:08:20 -05:00
|
|
|
resources :wiki_page_versions, :only => [:index, :show, :diff] do
|
|
|
|
collection do
|
|
|
|
get :diff
|
|
|
|
end
|
|
|
|
end
|
2013-03-19 08:10:10 -04:00
|
|
|
|
2011-09-21 16:30:44 -04:00
|
|
|
# aliases
|
|
|
|
resources :wpages, :controller => "wiki_pages"
|
|
|
|
resources :ftopics, :controller => "forum_topics"
|
|
|
|
resources :fposts, :controller => "forum_posts"
|
2011-06-12 16:41:23 -04:00
|
|
|
|
2011-11-11 15:56:52 -05:00
|
|
|
# legacy aliases
|
2013-03-25 22:32:24 -04:00
|
|
|
match "/artist" => redirect {|params, req| "/artists?page=#{req.params[:page]}&search[name]=#{CGI::escape(req.params[:name].to_s)}"}
|
2013-02-23 12:21:27 -05:00
|
|
|
match "/artist/index.xml", :controller => "legacy", :action => "artists", :format => "xml"
|
|
|
|
match "/artist/index.json", :controller => "legacy", :action => "artists", :format => "json"
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/artist/index" => redirect {|params, req| "/artists?page=#{req.params[:page]}"}
|
|
|
|
match "/artist/show/:id" => redirect("/artists/%{id}")
|
2013-03-25 22:32:24 -04:00
|
|
|
match "/artist/show" => redirect {|params, req| "/artists?name=#{CGI::escape(req.params[:name].to_s)}"}
|
2013-01-08 15:53:21 -05:00
|
|
|
match "/artist/history/:id" => redirect("/artist_versions?search[artist_id]=%{id}")
|
2013-02-22 12:24:10 -05:00
|
|
|
match "/artist/update/:id" => redirect("/artists/%{id}")
|
2013-02-22 21:42:50 -05:00
|
|
|
match "/artist/destroy/:id" => redirect("/artists/%{id}")
|
2013-02-22 12:24:10 -05:00
|
|
|
match "/artist/recent_changes" => redirect("/artist_versions")
|
2013-02-22 21:42:50 -05:00
|
|
|
match "/artist/create" => redirect("/artists")
|
2013-03-19 08:10:10 -04:00
|
|
|
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/comment" => redirect {|params, req| "/comments?page=#{req.params[:page]}"}
|
|
|
|
match "/comment/index" => redirect {|params, req| "/comments?page=#{req.params[:page]}"}
|
|
|
|
match "/comment/show/:id" => redirect("/comments/%{id}")
|
2013-02-20 15:10:37 -05:00
|
|
|
match "/comment/new" => redirect("/comments")
|
2013-02-22 12:24:10 -05:00
|
|
|
match "/comment/search" => redirect("/comments/search")
|
2013-03-19 08:10:10 -04:00
|
|
|
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/favorite" => redirect {|params, req| "/favorites?page=#{req.params[:page]}"}
|
|
|
|
match "/favorite/index" => redirect {|params, req| "/favorites?page=#{req.params[:page]}"}
|
2013-02-17 01:58:32 -05:00
|
|
|
match "/favorite/list_users.json", :controller => "legacy", :action => "unavailable"
|
2013-03-19 08:10:10 -04:00
|
|
|
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/forum" => redirect {|params, req| "/forum_topics?page=#{req.params[:page]}"}
|
|
|
|
match "/forum/index" => redirect {|params, req| "/forum_topics?page=#{req.params[:page]}"}
|
|
|
|
match "/forum/show/:id" => redirect("/forum_posts/%{id}")
|
2013-02-20 15:10:37 -05:00
|
|
|
match "/forum/search" => redirect("/forum_posts/search")
|
2013-02-22 12:24:10 -05:00
|
|
|
match "/forum/new" => redirect("/forum_posts/new")
|
2013-02-20 15:10:37 -05:00
|
|
|
match "/forum/edit/:id" => redirect("/forum_posts/%{id}/edit")
|
2011-11-11 15:56:52 -05:00
|
|
|
|
2013-03-10 16:36:54 -04:00
|
|
|
match "/help/:title" => redirect {|params, req| ("/wiki_pages?title=#{CGI::escape('help:' + req.params[:title])}")}
|
|
|
|
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/note" => redirect {|params, req| "/notes?page=#{req.params[:page]}"}
|
|
|
|
match "/note/index" => redirect {|params, req| "/notes?page=#{req.params[:page]}"}
|
|
|
|
match "/note/history" => redirect("/note_versions")
|
2013-03-19 08:10:10 -04:00
|
|
|
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/pool" => redirect {|params, req| "/pools?page=#{req.params[:page]}"}
|
|
|
|
match "/pool/index" => redirect {|params, req| "/pools?page=#{req.params[:page]}"}
|
|
|
|
match "/pool/show/:id" => redirect("/pools/%{id}")
|
2013-01-08 15:53:21 -05:00
|
|
|
match "/pool/history/:id" => redirect("/pool_versions?search[pool_id]=%{id}")
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/pool/recent_changes" => redirect("/pool_versions")
|
2013-03-19 08:10:10 -04:00
|
|
|
|
2011-12-22 12:39:27 -05:00
|
|
|
match "/post/index.xml", :controller => "legacy", :action => "posts", :format => "xml"
|
|
|
|
match "/post/index.json", :controller => "legacy", :action => "posts", :format => "json"
|
2013-02-20 01:23:08 -05:00
|
|
|
match "/post/create.xml", :controller => "legacy", :action => "create_post", :format => "xml"
|
2013-02-17 02:19:33 -05:00
|
|
|
match "/post/piclens", :controller => "legacy", :action => "unavailable"
|
2013-02-17 02:43:46 -05:00
|
|
|
match "/post/index" => redirect {|params, req| "/posts?tags=#{CGI::escape(req.params[:tags].to_s)}&page=#{req.params[:page]}"}
|
|
|
|
match "/post" => redirect {|params, req| "/posts?tags=#{CGI::escape(req.params[:tags].to_s)}&page=#{req.params[:page]}"}
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/post/upload" => redirect("/uploads/new")
|
2011-11-11 18:23:49 -05:00
|
|
|
match "/post/moderate" => redirect("/moderator/post/queue")
|
2013-02-17 02:43:46 -05:00
|
|
|
match "/post/atom" => redirect {|params, req| "/posts.atom?tags=#{CGI::escape(req.params[:tags].to_s)}"}
|
|
|
|
match "/post/atom.feed" => redirect {|params, req| "/posts.atom?tags=#{CGI::escape(req.params[:tags].to_s)}"}
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/post/popular_by_day" => redirect("/explore/posts/popular")
|
|
|
|
match "/post/popular_by_week" => redirect("/explore/posts/popular")
|
|
|
|
match "/post/popular_by_month" => redirect("/explore/posts/popular")
|
|
|
|
match "/post/show/:id/:tag_title" => redirect("/posts/%{id}")
|
|
|
|
match "/post/show/:id" => redirect("/posts/%{id}")
|
2013-02-17 00:59:19 -05:00
|
|
|
match "/post/view/:id/:tag_title" => redirect("/posts/%{id}")
|
|
|
|
match "/post/view/:id" => redirect("/posts/%{id}")
|
2013-02-22 12:24:10 -05:00
|
|
|
match "/post/flag/:id" => redirect("/posts/%{id}")
|
2013-03-19 08:10:10 -04:00
|
|
|
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/post_tag_history" => redirect {|params, req| "/post_versions?page=#{req.params[:page]}"}
|
|
|
|
match "/post_tag_history/index" => redirect {|params, req| "/post_versions?page=#{req.params[:page]}"}
|
2013-03-19 08:10:10 -04:00
|
|
|
|
2013-01-22 17:42:00 -05:00
|
|
|
match "/tag/index.xml", :controller => "legacy", :action => "tags", :format => "xml"
|
|
|
|
match "/tag/index.json", :controller => "legacy", :action => "tags", :format => "json"
|
2013-03-31 18:46:15 -04:00
|
|
|
match "/tag" => redirect {|params, req| "/tags?page=#{req.params[:page]}&search[name_matches]=#{CGI::escape(req.params[:name].to_s)}&search[order]=#{req.params[:order]}&search[category]=#{req.params[:type]}"}
|
2013-03-25 22:32:24 -04:00
|
|
|
match "/tag/index" => redirect {|params, req| "/tags?page=#{req.params[:page]}&search[name_matches]=#{CGI::escape(req.params[:name].to_s)}&search[order]=#{req.params[:order]}"}
|
2013-03-19 08:10:10 -04:00
|
|
|
|
2013-03-25 22:32:24 -04:00
|
|
|
match "/tag_implication" => redirect {|params, req| "/tag_implications?search[name_matches]=#{CGI::escape(req.params[:query].to_s)}"}
|
2013-03-21 19:25:42 -04:00
|
|
|
|
2013-01-22 17:42:00 -05:00
|
|
|
match "/user/index.xml", :controller => "legacy", :action => "users", :format => "xml"
|
|
|
|
match "/user/index.json", :controller => "legacy", :action => "users", :format => "json"
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/user" => redirect {|params, req| "/users?page=#{req.params[:page]}"}
|
|
|
|
match "/user/index" => redirect {|params, req| "/users?page=#{req.params[:page]}"}
|
2013-02-17 00:59:19 -05:00
|
|
|
match "/user/show/:id" => redirect("/users/%{id}")
|
|
|
|
match "/user/login" => redirect("/sessions/new")
|
2013-03-19 08:10:10 -04:00
|
|
|
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/wiki" => redirect {|params, req| "/wiki_pages?page=#{req.params[:page]}"}
|
|
|
|
match "/wiki/index" => redirect {|params, req| "/wiki_pages?page=#{req.params[:page]}"}
|
2013-02-22 12:24:10 -05:00
|
|
|
match "/wiki/revert" => redirect("/wiki_pages")
|
|
|
|
match "/wiki/rename" => redirect("/wiki_pages")
|
2013-02-17 02:43:46 -05:00
|
|
|
match "/wiki/show" => redirect {|params, req| "/wiki_pages?title=#{CGI::escape(req.params[:title].to_s)}"}
|
2011-11-11 17:38:01 -05:00
|
|
|
match "/wiki/recent_changes" => redirect("/wiki_page_versions")
|
|
|
|
match "/wiki/history/:title" => redirect("/wiki_page_versions?title=%{title}")
|
2011-11-11 15:56:52 -05:00
|
|
|
|
2011-11-02 11:02:35 -04:00
|
|
|
match "/static/keyboard_shortcuts" => "static#keyboard_shortcuts", :as => "keyboard_shortcuts"
|
2011-09-29 16:23:27 -04:00
|
|
|
match "/static/bookmarklet" => "static#bookmarklet", :as => "bookmarklet"
|
|
|
|
match "/static/site_map" => "static#site_map", :as => "site_map"
|
|
|
|
match "/static/terms_of_service" => "static#terms_of_service", :as => "terms_of_service"
|
2013-04-09 18:15:04 -04:00
|
|
|
match "/static/accept_terms_of_service" => "static#accept_terms_of_service", :as => "accept_terms_of_service"
|
2012-06-01 15:16:20 -04:00
|
|
|
match "/static/mrtg" => "static#mrtg", :as => "mrtg"
|
2012-09-19 17:16:37 -04:00
|
|
|
match "/static/contact" => "static#contact", :as => "contact"
|
2013-01-14 11:23:43 -05:00
|
|
|
match "/static/benchmark" => "static#benchmark"
|
2013-03-13 12:15:56 -04:00
|
|
|
match "/static/name_change" => "static#name_change", :as => "name_change"
|
2013-03-19 08:10:10 -04:00
|
|
|
|
2011-11-11 15:56:52 -05:00
|
|
|
root :to => "posts#index"
|
2010-02-04 15:08:49 -05:00
|
|
|
end
|