-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Route Arguments Not Working #38
Comments
Your route ends with Data/ in the declaration, Try to change the webroute to |
I must of miss copied but my route is: It does not recognize it with the request: |
Ah ok.
remove the [ and ] like so:
It seems, there is a bug in lib re (RegEx) on micropython(ESP32, others not tested). |
This fixed for me. Thanks |
I am running into an issue when trying to use Route Arguments. I defined the web route as:
@webroute(GET, '/Key/<key_val>/Data/')
but when a GET request such as:
GET /Key/DATA_UPLOAD_METHOD/Data/LoRa
is sent the program does not recognize it as a valid route. and I get:
MWS2-DEBUG> From 192.168.4.2:51137 GET /Key/DATA_UPLOAD_METHOD/Data/LoRa >> [307] Temporary Redirect
The text was updated successfully, but these errors were encountered: