|
|
|
@ -38,6 +38,7 @@ pub fn service(
|
|
|
|
.route("/rss.xml", get(rss::handle))
|
|
|
|
.route("/rss.xml", get(rss::handle))
|
|
|
|
.route("/atom.xml", get(atom::handle))
|
|
|
|
.route("/atom.xml", get(atom::handle))
|
|
|
|
.route("/articles/:post_id", get(post::handle))
|
|
|
|
.route("/articles/:post_id", get(post::handle))
|
|
|
|
|
|
|
|
.route("/robots.txt", static_content::file_service(&config.robots_path, None))
|
|
|
|
.route("/favicon.ico", static_content::file_service(&config.favicon_dir.join("favicon.ico"), None))
|
|
|
|
.route("/favicon.ico", static_content::file_service(&config.favicon_dir.join("favicon.ico"), None))
|
|
|
|
.route("/favicon-16x16.png", static_content::file_service(&config.favicon_dir.join("favicon-16x16.png"), None))
|
|
|
|
.route("/favicon-16x16.png", static_content::file_service(&config.favicon_dir.join("favicon-16x16.png"), None))
|
|
|
|
.route("/favicon-32x32.png", static_content::file_service(&config.favicon_dir.join("favicon-32x32.png"), None))
|
|
|
|
.route("/favicon-32x32.png", static_content::file_service(&config.favicon_dir.join("favicon-32x32.png"), None))
|
|
|
|
|