This commit is contained in:
yystopf 2023-04-07 10:35:44 +08:00
parent 4329236237
commit 39a851b74b
2 changed files with 3 additions and 3 deletions

View File

@ -451,7 +451,7 @@ Rails.application.routes.draw do
namespace :traces do
resources :trace_users, only: [:create]
scope "/:owner/:repo", constraints: { repo: /[^\/|.json]+/ } do
scope "/:owner/:repo", constraints: { repo: /[^\/]+/ } do
resource :projects, path: '/', only: [:index] do
member do
post :tasks
@ -464,7 +464,7 @@ Rails.application.routes.draw do
end
# Project Area START
scope "/:owner/:repo",constraints: { repo: /[^\/|.json]+/ } do
scope "/:owner/:repo",constraints: { repo: /[^\/]+/ } do
scope do
get(
'/activity',

View File

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