debian-mirror-gitlab/config/routes/unmatched_project.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
687 B
Ruby
Raw Normal View History

2021-02-04 15:43:07 +05:30
# frozen_string_literal: true
2023-06-20 00:43:36 +05:30
scope(
path: '*namespace_id',
as: :namespace,
namespace_id: Gitlab::PathRegex.full_namespace_route_regex
) do
scope(
path: ':project_id',
constraints: { project_id: Gitlab::PathRegex.project_route_regex },
as: :project
) do
2021-02-04 15:43:07 +05:30
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