Welcome to mirror list, hosted at ThFree Co, Russian Federation.

unmatched_project.rb « routes « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c310ae917775c28002b4a839fccdfdc48bb9e453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

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
    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