Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
fix: use correct mount path for API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Mar 13, 2021
1 parent 0f1156a commit 0e43f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ app.use(`${MOUNT_PATH}/sentences`, sentencesRoutes);
app.use(`${MOUNT_PATH}/stats`, statsRoutes);
app.use(`${MOUNT_PATH}/users`, usersRoutes);
app.use(`${MOUNT_PATH}/votes`, votesRoutes);
app.use('/api', swaggerUi.serve, swaggerUi.setup(swaggerDocument));
app.use(`${MOUNT_PATH}/api`, swaggerUi.serve, swaggerUi.setup(swaggerDocument));
app.use(express.static(path.resolve(__dirname, '..', 'web', 'dist')));

module.exports = app;

0 comments on commit 0e43f26

Please sign in to comment.