|
|
@ -17,8 +17,7 @@ export default async function credentialedProxyHandler(req, res) {
|
|
|
|
|
|
|
|
|
|
|
|
if (widget.type === "coinmarketcap") {
|
|
|
|
if (widget.type === "coinmarketcap") {
|
|
|
|
headers["X-CMC_PRO_API_KEY"] = `${widget.key}`;
|
|
|
|
headers["X-CMC_PRO_API_KEY"] = `${widget.key}`;
|
|
|
|
}
|
|
|
|
} else if (widget.type === "gotify") {
|
|
|
|
if(widget.type === "gotify"){
|
|
|
|
|
|
|
|
headers["X-gotify-Key"] = `${widget.key}`;
|
|
|
|
headers["X-gotify-Key"] = `${widget.key}`;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
headers["X-API-Key"] = `${widget.key}`;
|
|
|
|
headers["X-API-Key"] = `${widget.key}`;
|
|
|
|