2011-10-30 23:02:41 +00:00
|
|
|
module Locomotive
|
2011-04-24 23:21:38 +00:00
|
|
|
class SitemapsController < BaseController
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2011-10-30 23:02:41 +00:00
|
|
|
skip_before_filter :require_account, :validate_site_membership, :set_locale
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-07-13 00:46:17 +00:00
|
|
|
before_filter :require_site
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-07-13 00:46:17 +00:00
|
|
|
respond_to :xml
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2011-06-26 23:02:48 +00:00
|
|
|
skip_load_and_authorize_resource
|
|
|
|
|
2010-07-13 00:46:17 +00:00
|
|
|
def show
|
|
|
|
@pages = current_site.pages.published
|
2011-11-28 14:40:25 +00:00
|
|
|
respond_with @pages
|
2010-07-13 00:46:17 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-07-13 00:46:17 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
end
|