mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-22 11:40:09 +00:00
fix(@cockpit/services): send only process names to embark-api-client
`webSocketProcess` function in `embark-api-client` expects only a process name, but cockpit was calling it with name-strings prepended with `/process-logs/` resulting in bad URLs. Revise cockpit's `services/api` module to call `webSocketProcess` with process names only.
This commit is contained in:
parent
a39c2c82d7
commit
eb9de680d3
@ -179,7 +179,7 @@ export function listenToChannel(credentials, channel) {
|
||||
}
|
||||
|
||||
export function webSocketProcess(credentials, processName) {
|
||||
return embarkAPI.webSocketProcess(credentials, `/process-logs/${processName}`);
|
||||
return embarkAPI.webSocketProcess(credentials, processName);
|
||||
}
|
||||
|
||||
export function webSocketServices(credentials) {
|
||||
@ -205,4 +205,3 @@ export function webSocketBlockHeader(credentials) {
|
||||
export function websocketGasOracle(credentials) {
|
||||
return embarkAPI.websocketGasOracle(credentials, `/blockchain/gas/oracle`);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user