You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
353 B
20 lines
353 B
package http |
|
|
|
import ( |
|
"net/http" |
|
|
|
"go-common/library/log" |
|
bm "go-common/library/net/http/blademaster" |
|
) |
|
|
|
func sitemap(c *bm.Context) { |
|
logUA(c) |
|
|
|
res, err := srv.Sitemap(c, c.Request.Host) |
|
if err != nil { |
|
log.Error(err.Error()) |
|
return |
|
} |
|
c.Writer.Header().Set("Content-Type", "text/xml;charset=utf-8") |
|
c.String(http.StatusOK, string(res)) |
|
}
|
|
|