MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / get

Method get

apps/web/server/routers/messages/controller.ts:24–37  ·  view source on GitHub ↗
(
    req: AuthedRequestWithTenantAndBody<getMessageType>,
    res: Response,
    next: NextFunction
  )

Source from the content-addressed store, hash-verified

22
23export class MessagesController {
24 static async get(
25 req: AuthedRequestWithTenantAndBody<getMessageType>,
26 res: Response,
27 next: NextFunction
28 ) {
29 const message = await MessagesService.get({
30 ...req.body,
31 accountId: req.tenant?.id!,
32 });
33 if (!message) {
34 return next(new NotFound());
35 }
36 res.json(message);
37 }
38
39 static async delete(
40 req: AuthedRequestWithTenantAndBody<deleteMessageType>,

Callers 3

index.tsFile · 0.45
deleteMethod · 0.45
putMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected