Open telip007 opened 6 years ago
Unfortunately there isn't a way. I'm not sure what the best way to get this type of response would be since there really isn't a solid way to get the base URL in Vapor. Once I finish up some work on my projects I plan on coming back to this and reworking a few things. If you have any solutions or idea, definitely feel free to submit a pull request.
Ideally I'd like to to have two different responses for this.
It would be nice to allow anyone to build out their own custom implementation but that can be something for the future.
Can I customize the response to include the URLs for the next pages and also have a meta section? Similar to this: