From 27a02267e676ac6173f8614eadad1426d099bbb2 Mon Sep 17 00:00:00 2001 From: Tee Ming Date: Tue, 11 Mar 2025 12:03:52 +0800 Subject: [PATCH] Update 10-routing.md --- documentation/docs/20-core-concepts/10-routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/20-core-concepts/10-routing.md b/documentation/docs/20-core-concepts/10-routing.md index 6fcbac8e583b..9c9f117419ee 100644 --- a/documentation/docs/20-core-concepts/10-routing.md +++ b/documentation/docs/20-core-concepts/10-routing.md @@ -363,10 +363,10 @@ export async function POST({ request }) { Exporting the `fallback` handler will match any unhandled request methods, including methods like `MOVE` which have no dedicated export from `+server.js`. ```js -// @errors: 7031 /// file: src/routes/api/add/+server.js import { json, text } from '@sveltejs/kit'; +/** @type {import('./$types').RequestHandler} */ export async function POST({ request }) { const { a, b } = await request.json(); return json(a + b);