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