Procházet zdrojové kódy

exclude /_api/v3/healthcheck from basic authentication.

Koki Oyatsu před 7 roky
rodič
revize
bb54e0c038
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/server/crowi/express-init.js

+ 1 - 1
src/server/crowi/express-init.js

@@ -111,7 +111,7 @@ module.exports = function(crowi, app) {
 
 
     // FIXME:
     // FIXME:
     //   healthcheck endpoint exclude from basic authentication.
     //   healthcheck endpoint exclude from basic authentication.
-    //   However, as hard coding is not desirable.
+    //   however, hard coding is not desirable.
     //   need refactoring (ex. setting basic authentication for each routes)
     //   need refactoring (ex. setting basic authentication for each routes)
     if (req.originalUrl === '/_api/v3/healthcheck') {
     if (req.originalUrl === '/_api/v3/healthcheck') {
       return next();
       return next();