Skip to content

Commit

Permalink
exclude some acme and public endpoins from api docs generation
Browse files Browse the repository at this point in the history
  • Loading branch information
NickOvt committed May 9, 2024
1 parent 1a0272d commit 4dbe517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api.js
Expand Up @@ -213,7 +213,7 @@ server.use(

// public files
server.get(
{ name: 'public_get', path: '/public/*' },
{ name: 'public_get', path: '/public/*', exclude: true },
restify.plugins.serveStatic({
directory: Path.join(__dirname, 'public'),
default: 'index.html'
Expand Down
2 changes: 1 addition & 1 deletion lib/api/acme.js
Expand Up @@ -12,7 +12,7 @@ module.exports = (db, server, routeOptions) => {
const acmeChallenge = AcmeChallenge.create({ db: db.database });

server.get(
{ name: 'acmeToken', path: '/.well-known/acme-challenge/:token' },
{ name: 'acmeToken', path: '/.well-known/acme-challenge/:token', exclude: true },
responseWrapper(async (req, res) => {
res.charSet('utf-8');

Expand Down

0 comments on commit 4dbe517

Please sign in to comment.