mirror of
https://github.com/samanhappy/mcphub.git
synced 2026-01-10 16:47:56 -05:00
fix: update readonlyAllowPaths for correct authorization handling (#550)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user