summaryrefslogtreecommitdiff
path: root/config/routes/wiki.rb
blob: 49ad39e8369b1d4fdfe5baf2601d3832474c903e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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