fix: include /v1 suffix in all localhost URLs shown to users

Updates all user-facing log messages to include the /v1 path suffix,
so clients know to use http://localhost:${port}/v1 when configuring
their API endpoints.

- src/cli.ts:717 — clients add --setup-all flow
- src/cli.ts:757 — clients add -n ${name} flow
- src/daemon/index.ts:206 — daemon startup message
- src/start-daemon.ts:29 — daemon already running message
This commit is contained in:
redshift
2026-04-25 15:45:23 +05:30
parent 30f71d42a8
commit 57bfa94c58
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -714,7 +714,7 @@ clientsCmd
}
console.log(
`\n Access Routstr at: http://localhost:${config.port || 8008}`,
`\n Access Routstr at: http://localhost:${config.port || 8008}/v1`,
);
return;
}
@@ -754,7 +754,7 @@ clientsCmd
console.log(` Name: ${output.client.name}`);
console.log(` API Key: ${output.client.apiKey}`);
console.log(
`\n Access Routstr at: http://localhost:${config.port || 8008}`,
`\n Access Routstr at: http://localhost:${config.port || 8008}/v1`,
);
}
});
+1 -1
View File
@@ -203,7 +203,7 @@ async function main(): Promise<void> {
});
server.listen(port, async () => {
logger.log(`Routstr daemon listening on http://localhost:${port}`);
logger.log(`Routstr daemon listening on http://localhost:${port}/v1`);
// Start the recurring model refresh job after initial bootstrap
void ensureProvidersBootstrapped()
+1 -1
View File
@@ -26,7 +26,7 @@ export async function startDaemon(
});
clearTimeout(timeoutId);
if (existing.ok) {
logger.log(`Routstr daemon already running on http://localhost:${port}`);
logger.log(`Routstr daemon already running on http://localhost:${port}/v1`);
return;
}
} catch {