mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Revert "Update credentialed.js"
This reverts commit eeac1200e7aa22c94a4f3992a58f440eb7f3f2b5.
This commit is contained in:
parent
9d790894d5
commit
af02440c40
@ -3,13 +3,13 @@ import { formatApiCall } from "utils/api-helpers";
|
||||
import { httpProxy } from "utils/http";
|
||||
|
||||
export default async function credentialedProxyHandler(req, res) {
|
||||
let headersData
|
||||
const { group, service, endpoint } = req.query;
|
||||
|
||||
if (group && service) {
|
||||
const widget = await getServiceWidget(group, service);
|
||||
|
||||
if(widget.type === "gotify"){
|
||||
var headersData
|
||||
if(widget.type == "gotify"){
|
||||
headersData = {"X-gotify-Key": `${widget.key}`,"Content-Type": "application/json",}
|
||||
}else{
|
||||
headersData = {"X-API-Key": `${widget.key}`,"Content-Type": "application/json",}
|
||||
|
Loading…
x
Reference in New Issue
Block a user