Sha256: 8f6db6ac5ce8494398c9f231a0ed6f2badf13d01304d027ab055683d50423f99

Contents?: true

Size: 655 Bytes

Versions: 3

Compression:

Stored size: 655 Bytes

Contents

Rails.application.routes.draw do
  if BucketMaker.configured? && BucketMaker.load_routes?

    # Show if the user is in group
    #
    get   "/#{BucketMaker.configuration.path_prefix}:series_name/:bucket_name/:group_name", to: 'bucket_maker#show', as: :show_bucket, format: :json

    # Randomize group
    #
    post   "/#{BucketMaker.configuration.path_prefix}:series_name/:bucket_name", to: 'bucket_maker#randomize', as: :randomize_bucket, format: :json

    # Force Switch group
    #
    post   "/#{BucketMaker.configuration.path_prefix}:series_name/:bucket_name/:group_name", to: 'bucket_maker#switch', as: :switch_bucket, format: :json

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bucket_maker-0.0.4 config/routes.rb
bucket_maker-0.0.3 config/routes.rb
bucket_maker-0.0.2 config/routes.rb