更改:创建项目标识正则规则以及带.仓库无法正常显示的问题

This commit is contained in:
2023-04-06 16:47:23 +08:00
parent 7fdbc3dad1
commit 63196e018a
3 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ defaults format: :json do
resources :feedbacks, only: [:create]
end
scope ':repo' do
scope ':repo', constraints: { repo: /[^\/]+/ } do
# projects
resource :projects, path: '/', only: [:show, :update, :edit, :destroy] do
collection do