2016-11-14 14:55:31 +00:00
|
|
|
scope(controller: :wikis) do
|
|
|
|
scope(path: 'wikis', as: :wikis) do
|
|
|
|
get :git_access
|
|
|
|
get :pages
|
|
|
|
get '/', to: redirect('/%{namespace_id}/%{project_id}/wikis/home')
|
|
|
|
post '/', to: 'wikis#create'
|
|
|
|
end
|
2016-11-07 15:14:34 +00:00
|
|
|
|
2018-06-12 11:30:13 +00:00
|
|
|
scope(path: 'wikis/*id', as: :wiki, format: false, defaults: { format: :html }) do
|
2016-11-14 14:55:31 +00:00
|
|
|
get :edit
|
|
|
|
get :history
|
|
|
|
post :preview_markdown
|
|
|
|
get '/', action: :show
|
|
|
|
put '/', action: :update
|
|
|
|
delete '/', action: :destroy
|
|
|
|
end
|
2016-11-07 15:14:34 +00:00
|
|
|
end
|