@tramvai/papi 2.66.2 → 2.67.0
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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ export const papi = createPapiMethod({
|
|
|
70
70
|
import { createPapiMethod } from '@tramvai/papi';
|
|
71
71
|
|
|
72
72
|
export const papi = createPapiMethod({
|
|
73
|
-
async handler({ query, cookies }) {
|
|
73
|
+
async handler({ parsedUrl: { query }, cookies }) {
|
|
74
74
|
const { a, b } = query;
|
|
75
75
|
const { testCookie } = cookie;
|
|
76
76
|
|
|
@@ -151,7 +151,7 @@ const app = createApp({
|
|
|
151
151
|
});
|
|
152
152
|
|
|
153
153
|
export const papi = createPapiMethod({
|
|
154
|
-
async handler({ query }) {
|
|
154
|
+
async handler({ parsedUrl: { query } }) {
|
|
155
155
|
const { cacheKey } = query;
|
|
156
156
|
const { cache } = this.deps;
|
|
157
157
|
|