Files
progress-test/config/routes.rb
João Geonizeli 9dd9e28bf7 add typescript
2022-07-21 16:36:33 -03:00

19 lines
515 B
Ruby

Rails.application.routes.draw do
devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }
root to: "entrypoint#index"
get "*all" => "entrypoint#index", constraints: lambda { |req|
["playground", "rails", "graphql"].filter do |path|
req.path.include?(path)
end.blank?
}
post "/graphql", to: "graphql#execute"
ActiveAdmin.routes(self)
if Rails.env.development?
mount GraphqlPlayground::Rails::Engine, at: "/playground", graphql_path: "/graphql"
end
end