Skip to content

Commit

Permalink
Move DISABLED to status code 200
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Jan 15, 2025
1 parent 1904725 commit 84543b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions proxy/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@

DISABLED: Final[Set[str]] = set([
'/api/customer/registration',
'/networks'
])
WEB_ROOT: Final[str] = os.path.join(os.path.dirname(__file__), "web")
SERVER_DEBUG: Final[bool] = bool(os.getenv("PW_DEBUG", "no").lower() == "yes")
Expand Down Expand Up @@ -365,8 +364,7 @@ def do_GET(self):
result = path_handlers[path]()
elif path in DISABLED:
result = self.send_json_response(
{"status": "404 Response - API Disabled"},
status_code=HTTPStatus.NOT_FOUND
{"status": "404 Response - API Disabled"}
)
elif path in ALLOWLIST:
result = self.handle_allowlist(path)
Expand Down

0 comments on commit 84543b3

Please sign in to comment.