diff --git a/README.md b/README.md index aa2e3804c..753e7911f 100644 --- a/README.md +++ b/README.md @@ -94,8 +94,15 @@ cortex chat tell me a joke To run Cortex as an API server: ```bash cortex serve + +# Output +# Started server at http://localhost:1337 +# Swagger UI available at http://localhost:1337/api ``` +You can now access the Cortex API server at `http://localhost:1337`, +and the Swagger UI at `http://localhost:1337/api`. + ## Build from Source To install Cortex from the source, follow the steps below: diff --git a/cortex-js/src/main.ts b/cortex-js/src/main.ts index c745de9b8..7a77e3d6d 100644 --- a/cortex-js/src/main.ts +++ b/cortex-js/src/main.ts @@ -79,6 +79,7 @@ async function bootstrap() { await app.listen(port, host); console.log(`Started server at http://${host}:${port}`); + console.log(`Swagger UI available at http://${host}:${port}/api`); } bootstrap();