alado 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
- [transformProperty](#transformproperty)
|
|
28
28
|
- [fileUploadProperty](#fileuploadproperty)
|
|
29
29
|
- [Authentication](#authentication)
|
|
30
|
+
- [XML Body](#xml-request-body)
|
|
30
31
|
- [Access Control](#accesscontrol)
|
|
31
32
|
- [File Uploads](#file-uploads)
|
|
32
33
|
- [OpenAPI / Swagger](#openapi--swagger)
|
|
@@ -1122,9 +1123,10 @@ public getAvatar(req: Request) {
|
|
|
1122
1123
|
}
|
|
1123
1124
|
```
|
|
1124
1125
|
|
|
1125
|
-
|
|
1126
|
+
### `xml-request-body`
|
|
1126
1127
|
|
|
1127
1128
|
When a request arrives with a `Content-Type` of `text/xml` or `application/xml`, Alado automatically parses the raw body into a plain JavaScript object before your handler runs — no configuration needed, and no external XML library involved. `req.body` behaves the same way it does for JSON requests.
|
|
1129
|
+
(>=2.6.0)
|
|
1128
1130
|
|
|
1129
1131
|
### How the conversion works
|
|
1130
1132
|
|