Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
81e5e64a
Commit
81e5e64a
authored
Oct 03, 2014
by
Matija Obreza
Browse files
sitemap.xml
parent
11227c02
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/servlet/controller/SitemapXMLController.java
View file @
81e5e64a
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment