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

18 lines
425 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
scope(controller: :wikis) do
scope(path: 'wikis', as: :wikis) do
get :git_access
get :pages
2018-12-05 23:21:45 +05:30
get '/', to: redirect('%{namespace_id}/%{project_id}/wikis/home')
2017-08-17 22:00:37 +05:30
post '/', to: 'wikis#create'
end
2018-12-23 12:14:25 +05:30
scope(path: 'wikis/*id', as: :wiki, format: false) do
2017-08-17 22:00:37 +05:30
get :edit
get :history
post :preview_markdown
get '/', action: :show
put '/', action: :update
delete '/', action: :destroy
end
end