Continuing the discussion from Spam API Calls From Different IP's:
What I’m trying to do:
Capture HTTP request sent to a non-existent endpoint.
Will a wildcard endpoint work? or will it override my existing endpoints?
What I have tried:
Code Sample:
@anvil.server.http_endpoint("/*")
def handle_non_exsistant_endpoint():
print(anvil.server.request.path)
print(anvil.server.request.remote_address)
This didn’t seem to capture a request to an invalid endpoint.