2021-02-03 21:09:17 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-14 14:55:31 +00:00
|
|
|
scope(controller: :wikis) do
|
|
|
|
scope(path: 'wikis', as: :wikis) do
|
|
|
|
get :git_access
|
|
|
|
get :pages
|
2019-10-31 21:06:28 +00:00
|
|
|
get :new
|
2020-07-12 09:09:08 +00:00
|
|
|
get '/', to: redirect { |params, request| "#{request.path}/home" }
|
2019-10-31 21:06:28 +00:00
|
|
|
post '/', to: 'wikis#create'
|
2020-07-15 03:09:15 +00:00
|
|
|
scope '-' do
|
|
|
|
resource :confluence, only: :show
|
|
|
|
end
|
2016-11-14 14:55:31 +00:00
|
|
|
end
|
2016-11-07 15:14:34 +00:00
|
|
|
|
2019-10-31 21:06:28 +00:00
|
|
|
scope(path: 'wikis/*id', as: :wiki, format: false) do
|
2016-11-14 14:55:31 +00:00
|
|
|
get :edit
|
|
|
|
get :history
|
2020-07-02 15:09:08 +00:00
|
|
|
get :diff
|
2016-11-14 14:55:31 +00:00
|
|
|
post :preview_markdown
|
|
|
|
get '/', action: :show
|
|
|
|
put '/', action: :update
|
|
|
|
delete '/', action: :destroy
|
|
|
|
end
|
2016-11-07 15:14:34 +00:00
|
|
|
end
|