Skip to content

Commit cc832b2

Browse files
authored
fix(api-endpoints): public_get and acme endpoints excluded from api docs generation ZMS-156 (#688)
* Added submission api endpoint to api docs generation * exclude some acme and public endpoins from api docs generation * rename exclude to excludeRoute
1 parent 490b4e5 commit cc832b2

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ server.use(
217217

218218
// public files
219219
server.get(
220-
{ name: 'public_get', path: '/public/*' },
220+
{ name: 'public_get', path: '/public/*', excludeRoute: true },
221221
restify.plugins.serveStatic({
222222
directory: Path.join(__dirname, 'public'),
223223
default: 'index.html'

lib/api/acme.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = (db, server, routeOptions) => {
1212
const acmeChallenge = AcmeChallenge.create({ db: db.database });
1313

1414
server.get(
15-
{ name: 'acmeToken', path: '/.well-known/acme-challenge/:token' },
15+
{ name: 'acmeToken', path: '/.well-known/acme-challenge/:token', excludeRoute: true },
1616
responseWrapper(async (req, res) => {
1717
res.charSet('utf-8');
1818

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"restify-cors-middleware2": "2.2.1",
9797
"restify-errors": "8.0.2",
9898
"restify-logger": "2.0.1",
99-
"restifyapigenerate": "1.2.0",
99+
"restifyapigenerate": "1.2.1",
100100
"search-string": "3.1.0",
101101
"seq-index": "1.1.0",
102102
"smtp-server": "3.13.4",

0 commit comments

Comments
 (0)