jasonraimondi / url-to-png

Selfhosted. URL to PNG utility featuring parallel rendering using Playwright for screenshots and with storage caching via Local, S3, or CouchDB
https://jasonraimondi.github.io/url-to-png/
MIT License
136 stars 26 forks source link

feat: add allow list #16

Closed jasonraimondi closed 3 years ago

jasonraimondi commented 3 years ago

@AnnatarHe I updated this to use a route guard instead of a middleware. I like to think of middlewares as authentication steps, (asking who's knocking at the door), and guards as authorization (deciding to let them in the door or not). Since the allow list seems to be "yes or no you can come in", I felt it more appropriate to add as a guard. Thanks for the contribution. I will tag this as v1.3.0