this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a POST route

+27
+4
examples/api/app/api/hello/route.js examples/api/app/api/hello/route.ts
··· 6 6 const sayHi = !!headersList.get("should-say-hi"); 7 7 return new Response(sayHi ? "Hi World!" : "Hello World!"); 8 8 } 9 + 10 + export async function POST(request: Request) { 11 + return new Response(`Hello post-World! body=${await request.text()}`); 12 + }
+23
examples/api/tsconfig.json
··· 1 + { 2 + "compilerOptions": { 3 + "lib": ["dom", "dom.iterable", "esnext"], 4 + "allowJs": true, 5 + "skipLibCheck": true, 6 + "strict": false, 7 + "noEmit": true, 8 + "incremental": true, 9 + "module": "esnext", 10 + "esModuleInterop": true, 11 + "moduleResolution": "node", 12 + "resolveJsonModule": true, 13 + "isolatedModules": true, 14 + "jsx": "preserve", 15 + "plugins": [ 16 + { 17 + "name": "next" 18 + } 19 + ] 20 + }, 21 + "include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"], 22 + "exclude": ["node_modules"] 23 + }