mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
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:
parent
ebc8d459fb
commit
8dd3a3d7dd
1 changed files with 8 additions and 0 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue