diff --git a/app/views/home/index.xml.erb b/app/views/home/index.xml.erb new file mode 100644 index 00000000..50766f8d --- /dev/null +++ b/app/views/home/index.xml.erb @@ -0,0 +1,7 @@ + + + + <%= root_url %> + daily + + diff --git a/config/routes.rb b/config/routes.rb index ed862142..e576e33e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,4 @@ Rails.application.routes.draw do root to: 'home#index' + get 'sitemap', to: "home#index", defaults: { format: :xml } end