hacker-news-pwas | HNPWA - Hacker News readers as Progressive Web Apps 📱 | Hacking library
kandi X-RAY | hacker-news-pwas Summary
kandi X-RAY | hacker-news-pwas Summary
Hacker News readers as Progressive Web Apps. A spiritual successor to TodoMVC.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of hacker-news-pwas
hacker-news-pwas Key Features
hacker-news-pwas Examples and Code Snippets
Community Discussions
Trending Discussions on hacker-news-pwas
QUESTION
I'm working with Sinatra and a Hackernews API I've been struggling with pagination this API is not doing it with query parameters
So, for a site's info (page #1) the endpoint would be this https://api.hnpwa.com/v0/news/1.json and for page #2 is this one https://api.hnpwa.com/v0/news/2.json
I want to send parameters from the .erb file to modify this but I haven't been able to
app.rb
...ANSWER
Answered 2020-May-06 at 08:34The piece you are missing is that your action needs to receive some kind of parameter.
Currently you are always showing the first page:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hacker-news-pwas
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page