-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathroutes.rb
27 lines (21 loc) · 880 Bytes
/
routes.rb
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
Rails.application.routes.draw do
get "/healthcheck",
to: GovukHealthcheck.rack_response(
GovukHealthcheck::SidekiqRedis,
)
get "/rebuild-healthcheck", to: proc { [200, {}, %w[OK]] }
post "/preview", to: "govspeak#preview"
get "/error", to: "passthrough#error"
mount GovukAdminTemplate::Engine, at: "/style-guide"
resources :document_list_export_request, path: "/export/:document_type_slug", param: :export_id, only: [:show]
resources :documents, path: "/:document_type_slug", param: :content_id_and_locale, except: :destroy do
collection do
resource :export, only: %i[show create], as: :export_documents
end
resources :attachments, param: :attachment_content_id, except: %i[index show]
post :unpublish, on: :member
post :publish, on: :member
post :discard, on: :member
end
root to: "passthrough#index"
end