Skip to content
代码片段 群组 项目
未验证 提交 4f12e63a 编辑于 作者: Heinrich Lee Yu's avatar Heinrich Lee Yu 提交者: GitLab
浏览文件

Merge branch '442096-new-group-mardown-preview-route' into 'master'

Add new group level markdown_preview route

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/145001



Merged-by: default avatarHeinrich Lee Yu <heinrich@gitlab.com>
Approved-by: default avatarHeinrich Lee Yu <heinrich@gitlab.com>
Co-authored-by: default avatarMario Celi <mcelicalderon@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -259,6 +259,8 @@ ...@@ -259,6 +259,8 @@
resources(:groups, only: [:index, :new, :create]) do resources(:groups, only: [:index, :new, :create]) do
# The constraints ensure that the `group_id` parameter in the URL allows for multiple levels # The constraints ensure that the `group_id` parameter in the URL allows for multiple levels
# of subgroups, permitting both regular and encoded slashes (%2F). # of subgroups, permitting both regular and encoded slashes (%2F).
# Deprecated in favor of /groups/*group_id/-/preview_markdown
# https://gitlab.com/gitlab-org/gitlab/-/issues/442218
post :preview_markdown, constraints: { group_id: %r{#{Gitlab::PathRegex.full_namespace_route_regex.source}(%2F#{Gitlab::PathRegex.full_namespace_route_regex.source})*} } post :preview_markdown, constraints: { group_id: %r{#{Gitlab::PathRegex.full_namespace_route_regex.source}(%2F#{Gitlab::PathRegex.full_namespace_route_regex.source})*} }
end end
......
...@@ -164,6 +164,8 @@ ...@@ -164,6 +164,8 @@
resources :achievements, only: [:index, :new, :edit] resources :achievements, only: [:index, :new, :edit]
resources :work_items, only: [:index, :show], param: :iid resources :work_items, only: [:index, :show], param: :iid
post :preview_markdown
end end
scope( scope(
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册