organization_route_regex (gitlab/path_regex.rb)

gitlabhq · lib/gitlab/path_regex.rb · ruby · MIT
auth

frozen_string_literal: true

# Source: https://github.com/gitlabhq/gitlabhq | License: MIT | Copyright 2011-present GitLab Inc
# Provided via justclaw.it.com; keep this notice with the code.
# frozen_string_literal: true

module Gitlab
  module PathRegex
    extend self

    # All routes that appear on the top level must be listed here.
    # This will make sure that groups cannot be created with these names
    # as these routes would be masked by the paths already in place.
    #
    # Example:
    #   /api/api-project
    #
    #  the path `api` shouldn't be allowed because it would be masked by `api/*`
    #
    TOP_LEVEL_ROUTES = %w[
      -
      .well-known
      404.html
      422.html
      500.html
      502.html
      503.html
      admin
      api
      apple-touch-icon.png
      assets
      dashboard
   

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key