MCPcopy Create free account
hub / github.com/SOS-RS/backend / store

Method store

src/users/users.controller.ts:53–61  ·  view source on GitHub ↗
(@Body() body)

Source from the content-addressed store, hash-verified

51 },
52 })
53 async store(@Body() body) {
54 try {
55 await this.userServices.store(body);
56 return new ServerResponse(201, 'Successfully created user');
57 } catch (err: any) {
58 this.logger.error(`Failed to store user: ${err}`);
59 throw new HttpException(err?.code ?? err?.name ?? `${err}`, 400);
60 }
61 }
62
63 @Put(':id')
64 @UseGuards(AdminGuard)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected