class Fanforce::Plugin::Sinatra def route_add_initiative_ui layout = params[:callback] ? :fembedded_native : :fembedded page :add_initiative, :layout => layout, com_dir: params[:com_initiative_shortid] end def route_edit_initiative_ui page :edit_initiative, :layout => :fembedded, com_dir: params[:com_initiative_shortid] end def route_archive_initiative_callback json status: 'finished' end def route_destroy_initiative_callback json status: 'finished' end end