Open dlemmermann opened 1 year ago
I propose to change this link to
LinkUtil.setLink(rssImageView, "/links/rss/lotw");
That way we can others if we want to later...
@dlemmermann where exactly can I find the RSS link? There's no mention of it in page sources (in https://www.jfx-central.com/links), I could not find it using Google either.
@FlorianKirmaier do we have a method to create a Response
based on a String instead of one.jpro.platform.routing.View
?
As the RSS String generation is available, we should be able to simply replace https://github.com/dlsc-software-consulting-gmbh/jfxcentral2/blob/develop/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2App.java#L282
Now:
.and(Route.get("/links/rss", r -> Response.view(new LinksOfTheWeekPage(size)))) // TODO: how to return raw data?
Should be replaced with:
.and(Route.get("/rss/lotw", r -> Response.view(RSSManager.createRSS())))
If this works, we could extend createRSS to generate feeds for links, components, tutorials, etc.
Hi everyone, Finally found time to implement the missing feature for JPro (Adding custom HTTP handlers, to create simple responses) And created a PR!
There is now a method provided by Frank Delporte to generate an RSS feed in the DataRepository2 class. The method generates a String. Maybe that needs to be saved to a file periodically, maybe we can always create it on-the-fly.
There is an RSS button in the LinksOfTheWeekHeader. That one needs to point to the feed.