mirror of https://github.com/LemmyNet/lemmy.git
wip
parent
fd9fa27cd2
commit
2f2c5436c5
|
@ -15,7 +15,6 @@ use diesel::result::Error;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use self::rss::Guid;
|
use self::rss::Guid;
|
||||||
|
|
||||||
|
|
||||||
pub fn get_feed(path: web::Path<(char, String)>, req: HttpRequest) -> HttpResponse<Body> {
|
pub fn get_feed(path: web::Path<(char, String)>, req: HttpRequest) -> HttpResponse<Body> {
|
||||||
let sort_query = match req.match_info().query("sort").parse() {
|
let sort_query = match req.match_info().query("sort").parse() {
|
||||||
Ok(param) => param,
|
Ok(param) => param,
|
||||||
|
|
|
@ -207,6 +207,9 @@ fn main() {
|
||||||
web::get().to(nodeinfo::node_info_well_known),
|
web::get().to(nodeinfo::node_info_well_known),
|
||||||
)
|
)
|
||||||
.route("/feeds/{type}/{name}.xml", web::get().to(feeds::get_feed))
|
.route("/feeds/{type}/{name}.xml", web::get().to(feeds::get_feed))
|
||||||
|
// TODO: probably need a different function for this (or just handle all of /feeds?
|
||||||
|
// TODO: would be nice to use ListingType, but that doesnt include user
|
||||||
|
.route("/feeds/all.xml", web::get().to(feeds::get_feed))
|
||||||
// static resources
|
// static resources
|
||||||
.service(actix_files::Files::new("/static", front_end_dir()))
|
.service(actix_files::Files::new("/static", front_end_dir()))
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue