2021-02-01 19:09:14 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
scope(path: '*namespace_id',
|
2022-08-01 02:12:25 -04:00
|
|
|
as: :namespace,
|
|
|
|
namespace_id: Gitlab::PathRegex.full_namespace_route_regex) do
|
2021-02-01 19:09:14 -05:00
|
|
|
scope(path: ':project_id',
|
2022-08-01 02:12:25 -04:00
|
|
|
constraints: { project_id: Gitlab::PathRegex.project_route_regex },
|
|
|
|
as: :project) do
|
2021-02-01 19:09:14 -05:00
|
|
|
post '*all', to: 'application#route_not_found'
|
|
|
|
put '*all', to: 'application#route_not_found'
|
|
|
|
patch '*all', to: 'application#route_not_found'
|
|
|
|
delete '*all', to: 'application#route_not_found'
|
|
|
|
post '/', to: 'application#route_not_found'
|
|
|
|
put '/', to: 'application#route_not_found'
|
|
|
|
patch '/', to: 'application#route_not_found'
|
|
|
|
delete '/', to: 'application#route_not_found'
|
|
|
|
end
|
|
|
|
end
|