Skip to content

Commit 0c87c4f

Browse files
Jeiel0rbitRafatcb
andcommitted
chore(middleware): disable active middleware
This commit concludes the process of removing the active middleware from the application. Its responsibilities were migrated or delegated in previous commits. The remaining logic for "under maintenance" mode has been disabled, and its tests have been skipped. The file was renamed to `middleware.private.js` to serve as a placeholder, allowing for easy reactivation in the future if a new need for a middleware arises. Co-authored-by: Rafael Tavares <[email protected]>
1 parent 52c8052 commit 0c87c4f

File tree

5 files changed

+0
-278
lines changed

5 files changed

+0
-278
lines changed

.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ EMAIL_HTTP_HOST=localhost
1515
EMAIL_HTTP_PORT=1080
1616
EMAIL_USER=nodemailer
1717
EMAIL_PASSWORD=
18-
UNDER_MAINTENANCE={"methodsAndPaths":["POST /api/v1/under-maintenance-test$"]}
1918

2019
# Umami Analytics
2120
UMAMI_DB=umami

infra/under-maintenance.js

Lines changed: 0 additions & 44 deletions
This file was deleted.

middleware.public.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

tests/integration/infra/under-maintenance.test.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

tests/unit/infra/under-maintenance.test.js

Lines changed: 0 additions & 170 deletions
This file was deleted.

0 commit comments

Comments
 (0)