Commit 81e5e64a authored by Matija Obreza's avatar Matija Obreza

sitemap.xml

parent 11227c02
......@@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
/**
* http://www.sitemaps.org/protocol.html
*
*
* @author Matija Obreza, matija.obreza@croptrust.org
*/
@Controller
......@@ -34,7 +34,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
public class SitemapXMLController {
@Value("${base.url}")
private final String baseUrl = "http://localhost:8080";
private String baseUrl;
private static class SitemapPage {
String url;
......@@ -59,7 +59,8 @@ public class SitemapXMLController {
}
private final SitemapPage[] sitemapPages = new SitemapPage[] { new SitemapPage("/welcome", 1.0), new SitemapPage("/content/about", "monthly", 0.2),
new SitemapPage("/wiews/active", 1.0), new SitemapPage("/geo/", 1.0), new SitemapPage("/explore", 1.0), new SitemapPage("/org/") };
new SitemapPage("/explore/overview", 1.0), new SitemapPage("/wiews/active", 1.0), new SitemapPage("/content/terms", 1.0), new SitemapPage("/explore", 1.0),
new SitemapPage("/org/") };
@RequestMapping(method = RequestMethod.GET)
public @ResponseBody
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment