Sha256: 514684b679f1cfaefefe73541666778f4621bf3c0bdf5e44f105ea34ad775b50

Contents?: true

Size: 404 Bytes

Versions: 3

Compression:

Stored size: 404 Bytes

Contents

module SportDbAdmin
module ApiHelper

  def sportdb_api_defined?
    defined?( SportDb::Service::Server ) == 'constant'
  end

  def sportdb_api?
    # shorter alias (remove long version??? why? why not?)
    sportdb_api_defined?
  end


  ##############################
  # routes for api
  
  def api_path
    '/api/v1'
  end


end # module ApiHelper
end # module SportDbAdmin

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sportdb-admin-0.4.0 app/helpers/sport_db_admin/api_helper.rb
sportdb-admin-0.3.0 app/helpers/sport_db_admin/api_helper.rb
sportdb-admin-0.2.0 app/helpers/sport_db_admin/api_helper.rb