Module: Gitlab::EtagCaching::Router

Defined in:
lib/gitlab/etag_caching/router.rb,
lib/gitlab/etag_caching/router/rails.rb,
lib/gitlab/etag_caching/router/graphql.rb

Defined Under Namespace

Modules: Helpers Classes: Graphql, Rails, Route

Class Method Summary collapse

Class Method Details

.match(request) ⇒ Object

Performing Rails routing match before GraphQL would be more expensive for the GraphQL requests because we need to traverse all of the RESTful route definitions before falling back to GraphQL.



41
42
43
# File 'lib/gitlab/etag_caching/router.rb', line 41

def self.match(request)
  Router::Graphql.match(request) || Router::Rails.match(request)
end