debian-mirror-gitlab/config/routes/wiki.rb
2020-08-09 17:41:57 +05:30

22 lines
518 B
Ruby

scope(controller: :wikis) do
scope(path: 'wikis', as: :wikis) do
get :git_access
get :pages
get :new
get '/', to: redirect { |params, request| "#{request.path}/home" }
post '/', to: 'wikis#create'
scope '-' do
resource :confluence, only: :show
end
end
scope(path: 'wikis/*id', as: :wiki, format: false) do
get :edit
get :history
get :diff
post :preview_markdown
get '/', action: :show
put '/', action: :update
delete '/', action: :destroy
end
end