[PR #1816] Handle only routes from menu #1836

Open
opened 2026-02-28 02:13:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/tzapu/WiFiManager/pull/1816
Author: @sp2mbn
Created: 4/20/2025
Status: 🔄 Open

Base: masterHead: disable-non-used-routes


📝 Commits (1)

  • e8871da Handle only routes from menu

📊 Changes

2 files changed (+206 additions, -184 deletions)

View changed files

📝 WiFiManager.cpp (+140 -124)
📝 WiFiManager.h (+66 -60)

📄 Description

Option "setAllowAllRoutes" allow to decide if server should serve only pages defined in menu on root page. Flag is "true" by default that means all pages will be served even if there is no "direct" access to them from menu. If flag will be set to false and someone want to access to pages not added to menu e.q. by URL server will return 404.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/tzapu/WiFiManager/pull/1816 **Author:** [@sp2mbn](https://github.com/sp2mbn) **Created:** 4/20/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `disable-non-used-routes` --- ### 📝 Commits (1) - [`e8871da`](https://github.com/tzapu/WiFiManager/commit/e8871da4738843e2beca68f78389e16aaf39a806) Handle only routes from menu ### 📊 Changes **2 files changed** (+206 additions, -184 deletions) <details> <summary>View changed files</summary> 📝 `WiFiManager.cpp` (+140 -124) 📝 `WiFiManager.h` (+66 -60) </details> ### 📄 Description Option "setAllowAllRoutes" allow to decide if server should serve only pages defined in menu on root page. Flag is "true" by default that means all pages will be served even if there is no "direct" access to them from menu. If flag will be set to false and someone want to access to pages not added to menu e.q. by URL server will return 404. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1836
No description provided.