Sha256: 5acfa04dc846ccd99c287dce9d3fad2cc94b8849fb19764e252872bced678641

Contents?: true

Size: 536 Bytes

Versions: 4

Compression:

Stored size: 536 Bytes

Contents

require "grape"
require "grape-cancan"
require "grape_jsonapi"
require "grape-swagger"
require "grape_on_rails_routes"
# require "wine_bouncer"
require "pagy"
require "api-pagination"
require "rack/cors"

module BulletTrain
  module Api
    class Engine < ::Rails::Engine
      initializer "bullet_train.api.register_api_endpoints" do |app|
        if BulletTrain::Api
          BulletTrain::Api.endpoints << "Api::V1::MeEndpoint"
          BulletTrain::Api.endpoints << "Api::V1::TeamsEndpoint"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bullet_train-api-1.0.17 lib/bullet_train/api/engine.rb
bullet_train-api-1.0.16 lib/bullet_train/api/engine.rb
bullet_train-api-1.0.15 lib/bullet_train/api/engine.rb
bullet_train-api-1.0.14 lib/bullet_train/api/engine.rb