Sha256: 3b46c8b5eb32fc7f961efc49783a652c99f5361059470efc086bdae9cebf6968

Contents?: true

Size: 1018 Bytes

Versions: 22

Compression:

Stored size: 1018 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 '/:organization_slug/:initiative_slug/engage.html' do route_engage(params) end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
fanforce-plugin-factory-0.31.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.30.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.29.4 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.29.3 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.29.2 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.29.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.29.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.28.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.27.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.26.4 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.26.3 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.26.2 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.26.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.26.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.25.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.24.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.24.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.23.1 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.23.0 lib/fanforce/plugin_factory/routes_behavior.rb
fanforce-plugin-factory-0.22.1 lib/fanforce/plugin_factory/routes_behavior.rb