lambder 1.0.85 → 1.0.87
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 +4 -3
- package/package.json +1 -1
package/Readme.md
CHANGED
|
@@ -191,11 +191,12 @@ lambder.addApi("getCompanyName", async (ctx, res) => {
|
|
|
191
191
|
// attempts to serve the fallback file.
|
|
192
192
|
// Returns a JSON error if neither file is found.
|
|
193
193
|
|
|
194
|
-
return res.api({ payload,
|
|
194
|
+
return res.api({ payload, notAuthorized, message, errorMessage }, headers);
|
|
195
|
+
// This function works together with the LambderCaller from the frontend.
|
|
195
196
|
// Sends a standardized API response including the payload and status
|
|
196
197
|
// flags like versionExpired, sessionExpired, notAuthorized, along with
|
|
197
|
-
// optional messages and headers.
|
|
198
|
-
|
|
198
|
+
// optional messages and headers.
|
|
199
|
+
|
|
199
200
|
// res.die.*
|
|
200
201
|
// Acts the same as res.* but will:
|
|
201
202
|
// - Immediately return the value.
|