1
0
mirror of https://github.com/samanhappy/mcphub.git synced 2026-01-11 00:58:20 -05:00

fix: update readonlyAllowPaths for correct authorization handling (#550)

This commit is contained in:
samanhappy
2026-01-04 13:06:27 +08:00
committed by GitHub
parent 6a08f4bc5a
commit 3de56b30bd

View File

@@ -39,7 +39,7 @@ const validateBearerAuth = async (req: Request): Promise<boolean> => {
return true;
};
const readonlyAllowPaths = ['/tools/call/'];
const readonlyAllowPaths = ['/tools/'];
const checkReadonly = (req: Request): boolean => {
if (!defaultConfig.readonly) {