diff --git a/universal-proxy-config.json b/universal-proxy-config.json index 65d20e9..708c9d5 100644 --- a/universal-proxy-config.json +++ b/universal-proxy-config.json @@ -336,6 +336,19 @@ ] } } + }, + "ws_megaeth": { + "base_url": "wss://carrot.megaeth.com", + "api_key": { + "location": "path", + "param_name": "api_key" + }, + "endpoints": { + "base": { + "path": "/mafia/ws/:api_key", + "params": [] + } + } } } } diff --git a/universal-proxy-config.schema.json b/universal-proxy-config.schema.json index 73192dd..ded4ebb 100644 --- a/universal-proxy-config.schema.json +++ b/universal-proxy-config.schema.json @@ -23,7 +23,7 @@ "properties": { "location": { "type": "string", - "enum": ["header", "query", "body"], + "enum": ["header", "query", "body", "path"], "description": "Where to place the API key" }, "param_name": { @@ -125,7 +125,7 @@ } } }, - "required": ["path", "method"], + "required": ["path"], "additionalProperties": false } },