MCPcopy
hub / github.com/immich-app/immich / getSyncStream

Method getSyncStream

server/src/controllers/sync.controller.ts:30–37  ·  view source on GitHub ↗
(@Auth() auth: AuthDto, @Req() req: Request, @Res() res: Response, @Body() dto: SyncStreamDto)

Source from the content-addressed store, hash-verified

28 history: new HistoryBuilder().added('v1').beta('v1').stable('v2'),
29 })
30 async getSyncStream(@Auth() auth: AuthDto, @Req() req: Request, @Res() res: Response, @Body() dto: SyncStreamDto) {
31 try {
32 await this.service.stream(auth, res, dto);
33 } catch (error: Error | any) {
34 res.setHeader('Content-Type', 'application/json');
35 this.errorService.handleError(req, res, error);
36 }
37 }
38
39 @Get('ack')
40 @Authenticated({ permission: Permission.SyncCheckpointRead })

Callers

nothing calls this directly

Calls 2

streamMethod · 0.45
handleErrorMethod · 0.45

Tested by

no test coverage detected