Example #1
0
File: sites.go Project: mewben/onix
// Sitemap xml
func (*SiteController) Sitemap(c echo.Context) error {
	ret, err := models.Sitemap()
	if err != nil {
		return c.XML(400, err)
	}

	return c.XML(200, ret)
}