Integrate unfinished server-rs refactor worklists
This commit is contained in:
@@ -35,9 +35,12 @@ export function requestRpgRuntimeJson<T>(
|
||||
const retry =
|
||||
options.retry ??
|
||||
(method === 'GET' ? RUNTIME_READ_RETRY : RUNTIME_WRITE_RETRY);
|
||||
const normalizedPath = path.startsWith('/profile/')
|
||||
? `/api${path}`
|
||||
: `${RUNTIME_API_BASE}${path}`;
|
||||
|
||||
return requestJson<T>(
|
||||
`${RUNTIME_API_BASE}${path}`,
|
||||
normalizedPath,
|
||||
{
|
||||
...init,
|
||||
signal: options.signal,
|
||||
|
||||
Reference in New Issue
Block a user