next-rest-framework
Advanced tools
Comparing version
{ | ||
"name": "next-rest-framework", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Next REST Framework - write type-safe, self-documenting REST APIs in Next.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -92,3 +92,5 @@ <p align="center"> | ||
export const { defineCatchAllHandler, defineEndpoints } = NextRestFramework(); | ||
export const { defineCatchAllHandler, defineEndpoints } = NextRestFramework({ | ||
// apiRoutesPath: "src/pages/api", // Only needed if using the src/ folder. | ||
}); | ||
``` | ||
@@ -166,5 +168,5 @@ | ||
}), | ||
query: { | ||
query: z.object({ | ||
page: z.number() | ||
} | ||
}) | ||
}, | ||
@@ -171,0 +173,0 @@ output: [ |
153287
0.06%374
0.54%