93a618f0e5
Previously we asked a user to enter a new slug before taking them to the Create Page page. As a UX improvement, we now take them to a randomly generated URI so they can begin creating their new page. https://gitlab.com/gitlab-org/gitlab-ce/issues/46299
18 lines
438 B
Ruby
18 lines
438 B
Ruby
scope(controller: :wikis) do
|
|
scope(path: 'wikis', as: :wikis) do
|
|
get :git_access
|
|
get :pages
|
|
get :new
|
|
get '/', to: redirect('%{namespace_id}/%{project_id}/wikis/home')
|
|
post '/', to: 'wikis#create'
|
|
end
|
|
|
|
scope(path: 'wikis/*id', as: :wiki, format: false) do
|
|
get :edit
|
|
get :history
|
|
post :preview_markdown
|
|
get '/', action: :show
|
|
put '/', action: :update
|
|
delete '/', action: :destroy
|
|
end
|
|
end
|