edgi-govdata-archiving / web-monitoring-db

An HTTP API for tracking and annotating changes to a set of web pages.
https://api.monitoring.envirodatagov.org/
GNU General Public License v3.0
17 stars 26 forks source link

Add config for public read access #1071

Closed Mr0grog closed 1 year ago

Mr0grog commented 1 year ago

This starts the path toward #1069 by adding an environment variable ALLOW_PUBLIC_VIEW that determines whether you need to be logged in to have view permissions on API routes. For now, it defaults to false, but once we are comfortable that it's safe, we'll switch the default to true.