mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 03:58:02 -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
3493a7a26f
commit
31b0d797f3
1 changed files with 8 additions and 0 deletions
|
@ -25,8 +25,16 @@ async function bootstrap(): Promise<void> {
|
|||
const mediaConfig = configService.get<MediaConfig>('mediaConfig');
|
||||
|
||||
setupPublicApiDocs(app);
|
||||
logger.log(
|
||||
`Serving OpenAPI docs for public api under '/apidoc'`,
|
||||
'AppBootstrap',
|
||||
);
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
setupPrivateApiDocs(app);
|
||||
logger.log(
|
||||
`Serving OpenAPI docs for private api under '/private/apidoc'`,
|
||||
'AppBootstrap',
|
||||
);
|
||||
}
|
||||
|
||||
app.useGlobalPipes(
|
||||
|
|
Loading…
Reference in a new issue