From c5c92abad23be2f09f3c52647bb8c8e3e28d47b5 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Sun, 10 Jun 2012 21:02:29 +1200 Subject: [PATCH] MINOR: moved director route to new config API --- _config.php | 8 ++------ _config/routes.yml | 6 ++++++ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 _config/routes.yml diff --git a/_config.php b/_config.php index 56469e7..01b9268 100644 --- a/_config.php +++ b/_config.php @@ -1,12 +1,8 @@ 'GoogleSitemap', -)); - // add the extension to pages -if (class_exists('SiteTree')) Object::add_extension('SiteTree', 'GoogleSitemapSiteTreeDecorator'); +if (class_exists('SiteTree')) + Object::add_extension('SiteTree', 'GoogleSitemapSiteTreeDecorator'); // if you need to add this to DataObjects include the following in // your own _config: diff --git a/_config/routes.yml b/_config/routes.yml new file mode 100644 index 0000000..08cb42c --- /dev/null +++ b/_config/routes.yml @@ -0,0 +1,6 @@ +--- +Name: googlesitemaproutes +--- +Director: + rules: + 'sitemap.xml': 'GoogleSitemap' \ No newline at end of file