BREAKING CHANGE(typedserver): migrate route handlers to use IRequestContext and lazy body parsers

This commit is contained in:
2025-12-20 08:11:04 +00:00
parent d5800f58b4
commit 64f8f400c2
12 changed files with 193 additions and 127 deletions

View File

@@ -119,7 +119,7 @@ class UserController {
@smartserve.Post('/')
async createUser(ctx: smartserve.IRequestContext): Promise<Response> {
const userData = ctx.body;
const userData = await ctx.json();
const newUser = await createUserInDb(userData);
return new Response(JSON.stringify(newUser), {
status: 201,