2016-11-14 09:55:31 -05:00
|
|
|
scope(controller: :wikis) do
|
|
|
|
scope(path: 'wikis', as: :wikis) do
|
|
|
|
get :git_access
|
|
|
|
get :pages
|
2019-08-01 01:54:52 -04:00
|
|
|
get :new
|
2018-09-21 10:10:20 -04:00
|
|
|
get '/', to: redirect('%{namespace_id}/%{project_id}/wikis/home')
|
2016-11-14 09:55:31 -05:00
|
|
|
post '/', to: 'wikis#create'
|
|
|
|
end
|
2016-11-07 10:14:34 -05:00
|
|
|
|
2018-11-29 09:26:46 -05:00
|
|
|
scope(path: 'wikis/*id', as: :wiki, format: false) do
|
2016-11-14 09:55:31 -05:00
|
|
|
get :edit
|
|
|
|
get :history
|
|
|
|
post :preview_markdown
|
|
|
|
get '/', action: :show
|
|
|
|
put '/', action: :update
|
|
|
|
delete '/', action: :destroy
|
|
|
|
end
|
2016-11-07 10:14:34 -05:00
|
|
|
end
|