wiki.rb 425 Bytes
Newer Older
1 2 3 4
scope(controller: :wikis) do
  scope(path: 'wikis', as: :wikis) do
    get :git_access
    get :pages
5
    get '/', to: redirect('%{namespace_id}/%{project_id}/wikis/home')
6 7
    post '/', to: 'wikis#create'
  end
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
8

9
  scope(path: 'wikis/*id', as: :wiki, format: false) do
10 11 12 13 14 15 16
    get :edit
    get :history
    post :preview_markdown
    get '/', action: :show
    put '/', action: :update
    delete '/', action: :destroy
  end
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
17
end