Files
x-stake/config/routes.rb
2021-08-15 23:55:56 -03:00

25 lines
645 B
Ruby

# frozen_string_literal: true
Rails.application.routes.draw do
devise_for :users
devise_for :admin_users
namespace :admin do
resources :users
resources :balances
resources :fiat_balances
resources :buy_crypto_orders
resources :sell_crypto_orders
resources :admin_users
root to: "users#index"
end
root to: "home#index"
get "*all" => "home#index", constraints: lambda { |req|
req.path.exclude?("playground") && req.path.exclude?("rails")
}
post "/graphql", to: "graphql#execute"
mount GraphqlPlayground::Rails::Engine, at: "/playground", graphql_path: "/graphql" if Rails.env.development?
end