|
if (query.flush == "02874523") { |
|
console.log("Flushing the cache."); |
|
data = fetchDataBrokers(); |
|
} |
It could be replaced by an env variable, like the API Key.
if (query.flush == process.env.FLUSH_KEY) {
console.log("Flushing the cache.");
data = fetchDataBrokers();
}
data-brokers/api-proxy/pages/api/databrokers.js
Lines 69 to 72 in a3b99a3
It could be replaced by an env variable, like the API Key.