mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-01 21:13:39 +01:00
fix error with no map
This commit is contained in:
parent
d7a161c088
commit
cf41e988eb
@ -24,7 +24,7 @@ export default async function genericProxyHandler(req, res, maps) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let resultData = data;
|
let resultData = data;
|
||||||
if (maps[endpoint]) {
|
if (maps?.[endpoint]) {
|
||||||
resultData = maps[endpoint](data);
|
resultData = maps[endpoint](data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user