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

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

8 lines
342 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2021-04-17 20:07:23 +05:30
match '/api/graphql', via: [:get, :post], to: 'graphql#execute'
2020-03-13 15:44:24 +05:30
mount GraphiQL::Rails::Engine, at: '/-/graphql-explorer', graphql_path: Gitlab::Utils.append_path(Gitlab.config.gitlab.relative_url_root, '/api/graphql')
2018-11-08 19:23:39 +05:30
2019-09-30 21:07:59 +05:30
::API::API.logger Rails.logger # rubocop:disable Gitlab/RailsLogger
mount ::API::API => '/'