Skip to content

Commit 27a0226

Browse files
authored
Update 10-routing.md
1 parent d6f9beb commit 27a0226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/20-core-concepts/10-routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,10 @@ export async function POST({ request }) {
363363
Exporting the `fallback` handler will match any unhandled request methods, including methods like `MOVE` which have no dedicated export from `+server.js`.
364364
365365
```js
366-
// @errors: 7031
367366
/// file: src/routes/api/add/+server.js
368367
import { json, text } from '@sveltejs/kit';
369368

369+
/** @type {import('./$types').RequestHandler} */
370370
export async function POST({ request }) {
371371
const { a, b } = await request.json();
372372
return json(a + b);

0 commit comments

Comments
 (0)