You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error message: error: (ENOENT) Route: /docs/ - ENOENT: no such file or directory, stat '/usr/src/app/src/docs.html'
In my app.js I have put:
.configure(swagger({
docsPath: '/docs',
uiIndex: path.join(__dirname, 'docs.html'),
info: {
title: 'A test',
description: 'A description'
}
}))
The feathers app runs in a docker container. I guess it has something to do with creating the docs.html within the container. When I remove the uiIndex:, I get the swagger json output under /docs/.
The text was updated successfully, but these errors were encountered:
You have to create a docs.html as shown in the Readme and the example. path.join(__dirname, 'docs.html') has to be modified to point to the right filename if it is somewhere else outside of the source file folder (__dirname).
I get the following error message:
error: (ENOENT) Route: /docs/ - ENOENT: no such file or directory, stat '/usr/src/app/src/docs.html'
In my
app.js
I have put:The feathers app runs in a docker container. I guess it has something to do with creating the
docs.html
within the container. When I remove theuiIndex:
, I get the swagger json output under/docs/
.The text was updated successfully, but these errors were encountered: