debian-mirror-gitlab/config/routes/wiki.rb

25 lines
549 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
scope(controller: :wikis) do
scope(path: 'wikis', as: :wikis) do
get :git_access
get :pages
2019-12-04 20:38:33 +05:30
get :new
2020-07-28 23:09:34 +05:30
get '/', to: redirect { |params, request| "#{request.path}/home" }
2017-08-17 22:00:37 +05:30
post '/', to: 'wikis#create'
2020-07-28 23:09:34 +05:30
scope '-' do
resource :confluence, only: :show
end
2017-08-17 22:00:37 +05:30
end
2019-02-15 15:39:39 +05:30
scope(path: 'wikis/*id', as: :wiki, format: false) do
2017-08-17 22:00:37 +05:30
get :edit
get :history
2020-07-28 23:09:34 +05:30
get :diff
2017-08-17 22:00:37 +05:30
post :preview_markdown
get '/', action: :show
put '/', action: :update
delete '/', action: :destroy
end
end