Logging: Add OpenAPI log messages

Let the user know where the OpenAPI docs can be found.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-04-02 17:40:44 +02:00 committed by David Mehren
parent ebc8d459fb
commit 8dd3a3d7dd
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -25,8 +25,16 @@ async function bootstrap(): Promise<void> {
const mediaConfig = configService.get<MediaConfig>('mediaConfig'); const mediaConfig = configService.get<MediaConfig>('mediaConfig');
setupPublicApiDocs(app); setupPublicApiDocs(app);
logger.log(
`Serving OpenAPI docs for public api under '/apidoc'`,
'AppBootstrap',
);
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
setupPrivateApiDocs(app); setupPrivateApiDocs(app);
logger.log(
`Serving OpenAPI docs for private api under '/private/apidoc'`,
'AppBootstrap',
);
} }
app.useGlobalPipes( app.useGlobalPipes(