Sha256: 27ebb4103d77ccb8e66df1324b74ddf1f7decb34b12d49243c1b0000ea9d5105

Contents?: true

Size: 1014 Bytes

Versions: 37

Compression:

Stored size: 1014 Bytes

Contents

class FanforcePlugin::Sinatra

  # ADD INITIATIVE UI ############################################################
  def route_add_initiative(params)
    page :add_initiative, :layout => :add_edit_initiative
  end
  get '/add_initiative.html' do route_add_initiative(params) end

  # EDIT INITIATIVE UI ###########################################################
  def route_edit_initiative(params)
    page :edit_initiative, :layout => :add_edit_initiative
  end
  get '/edit_initiative.html' do route_edit_initiative(params) end

  # WIDGET TMPLS #################################################################
  def route_widget_tmpls(params)
    content_type 'application/javascript'
    page :widget_tmpls
  end
  get '/widget_tmpls' do route_widget_tmpls(params) end

  # ENGAGE #######################################################################
  def route_engage(params)
    page :engage, :layout => :engage
  end
  get '/:fanforce_slug/:initiative_slug/engage.html' do route_engage(params) end

end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
fanforce-plugin-factory-0.20.2 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.20.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.20.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.19.3 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.19.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.19.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.18.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.17.2 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.17.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.17.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.16.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.16.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.15.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.14.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.14.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.13.5 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.13.4 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.13.3 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.13.2 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.13.1 lib/fanforce/plugin_factory/routes_behavior.rb