app-backend: point out where POST request errors are coming from

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-09-13 09:05:38 +02:00
parent 72a8c7b499
commit 1231e6ecbb
+3 -1
View File
@@ -220,7 +220,9 @@ export async function createRouter(
req.method = 'GET';
next('router');
} else {
throw new InputError('Invalid POST request to /');
throw new InputError(
'Invalid POST request to app-backend wildcard endpoint',
);
}
},
);